Open mppf opened 6 years ago
It has been proposed that Chapel support variant types / something more like Rust enum / a more flexible tagged union.
See also the archived mailing list at https://sourceforge.net/p/chapel/mailman/message/33231178/ (and also "type select on unions": https://sourceforge.net/p/chapel/mailman/message/33156198/ )
Should Chapel support variant types? What would they look like?
Supporting variant types might well add them to enum and deprecate union entirely.
enum
union
No matter what, unions need some improvement:
init=
C/C++ FFI considerations for implementing tagged unions in Rust
It has been proposed that Chapel support variant types / something more like Rust enum / a more flexible tagged union.
See also the archived mailing list at https://sourceforge.net/p/chapel/mailman/message/33231178/ (and also "type select on unions": https://sourceforge.net/p/chapel/mailman/message/33156198/ )
Should Chapel support variant types? What would they look like?
Supporting variant types might well add them to
enum
and deprecateunion
entirely.No matter what, unions need some improvement:
init=
#15189