-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Clarify important points about parametric types
Closes #43811. - The intro section felt a bit long-winded, I've made some changes there first. - Clarify that `typeof` returns the concrete type - Rename Type Declarations section to Type Annotations, avoid confusion with Declaring Types section and distinguish use of "type declaration" to mean "declaring new types" - Removed some of the jargon and wikipedia links to make room for a brief alternative `Point{T1,T2}` demonstration. - Shifted some paragraphs around to reflect their importance, and changed the wording in some places. - Rename type declaration -> annotation in other places (docstrings/comments)
- Loading branch information
1 parent
816c6a2
commit 259898f
Showing
9 changed files
with
135 additions
and
136 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
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
Oops, something went wrong.