leo icon indicating copy to clipboard operation
leo copied to clipboard

[Feature] Sum types.

Open d0cd opened this issue 11 months ago • 1 comments

Sum types are a desirable programming paradigm. The tricky bit is how to encode them. Naively as a struct with all variants, but is there a better way?

d0cd avatar Jan 08 '25 22:01 d0cd

If we add sum types, then we would also need match statements and expressions. We could start by adding basic enums and encode them as integers but those are not as interesting.

mohammadfawaz avatar May 22 '25 15:05 mohammadfawaz