File
typeparse/VERSION
— part of check-in
[eacc36058b]
at
2026-11-27 09:47:31
on branch tip-764_tcl90
—
v17z
Review of sum type notation.
- A variant of a sum is metadata, it must not appeat into the value :
If there is ambiguity to choose a variant of a sum, it must be an error.
- New commands to request variants of a sum type, or of a litteral sum :
type variant $v ?NAME? : empty for a litteral ; NAME select the variant of the value.
type variant -of T ?NAME?
type literal -of T ;
type is {sum?}T
type is {enum?}T
- New command to compare the type of a value :
type eq T1 T2 : true is types T1 and T2 are equal
type include T1 T2 : true if type T2 is included into T1
- New type 'num'
(user:
Florentis,
size: 5)
[annotate]
[blame][check-ins using]