2 ms·
Because a type declaration is declaring multiple identifiers. Each of the enum variants is a legal name. The tuple declaration is declaring one identifier with
by TylerE 7y ago
Because a type declaration is declaring multiple identifiers. Each of the enum variants is a legal name.
The tuple declaration is declaring one identifier with multiple fields. The names of the field are only legal as, well, fields of the outer object.