-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce term "identity convertible" for types that aren't the same …
…type, but have an identity conversion (#985) * first commit: dynamic and object Introduce and define the term "runtime interchangeable" in the types clause. Where applicable, replace the phrases "the same type" and "equivalent types" with the phrase "runtime interchangeable." * 2nd commit: Prohibit `dynamic` as a base class. * commit three: Move definition Move and expand the definition of *runtime interchangeable* to the conversions chapter, and expand its definition to include tuples and constructed generic types. * use runtime interchangeable Sweep the standard for instances of "identity conversion" and replace with "runtime interchangeable" in those instances where the meaning was specifically one of the types that aren't the same, but have an identity conversion. * one more edit pass * proofread * Update standard/types.md Co-authored-by: Jon Skeet <[email protected]> * Update standard/types.md Co-authored-by: Jon Skeet <[email protected]> * Rephrase paragraph. * update wording on closed generic types * Apply suggestions from code review Co-authored-by: Neal Gafter <[email protected]> * updates from committee - Remove normative text on nested tuples and identity conversions. - Add an example that demonstrates the nature of nested tuples being identity convertible when each member is identity convertible. - Replace "runtime interchangeable" with "identity convertible". - Add text that all identity conversions are symmetric. * fix test runner * respond to feedback. * Apply suggestions from code review Co-authored-by: Jon Skeet <[email protected]> * Apply suggestions from code review Co-authored-by: Jon Skeet <[email protected]> --------- Co-authored-by: Jon Skeet <[email protected]> Co-authored-by: Neal Gafter <[email protected]>
- Loading branch information
1 parent
29e86c5
commit 2239f60
Showing
4 changed files
with
49 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters