File tree 1 file changed +0
-8
lines changed
1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -3437,14 +3437,6 @@ of the tuple. It has no nominal name and is instead structurally typed.
3437
3437
Tuple types and values are denoted by listing the types or values of their
3438
3438
elements, respectively, in a parenthesized, comma-separated list.
3439
3439
3440
- The empty tuple is the "unit" type ` () ` , having the single value ` () `
3441
- (occasionally called "nil"). [ ^ unittype ]
3442
-
3443
- [ ^ unittype ] : The "unit" value ` () ` is * not* a sentinel "null pointer" value for
3444
- reference variables; the "unit" type is the implicit return type from functions
3445
- otherwise lacking a return type, and can be used in other contexts (such as
3446
- message-sending or type-parametric code) as a zero-size type.]
3447
-
3448
3440
Because tuple elements don't have a name, they can only be accessed by
3449
3441
pattern-matching or by using ` N ` directly as a field to access the
3450
3442
` N ` th element.
You can’t perform that action at this time.
0 commit comments