You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The language should support "dumb" enums, which are a simple wrapper around an integral type to allow using it with clear names in source code. Note that stringification of enum entries is a requirement for this.
For combining multiple values which aren't simply numbers, unions will exist instead for that purpose (and should go in a separate issue)
The text was updated successfully, but these errors were encountered:
Implement named constructors. Each enum member will create a corresponding named, no-arg constructor of that enum
Transform enums into their corresponding structs, desugaring them. Probably need a more robust AST transformation system (as in one at all, see destructor implementation notes)
Full implementation (with data members and names of members)
yume/example/bf.ym
Lines 1 to 2 in 8891c4c
The language should support "dumb"
enum
s, which are a simple wrapper around an integral type to allow using it with clear names in source code. Note that stringification of enum entries is a requirement for this.For combining multiple values which aren't simply numbers,
union
s will exist instead for that purpose (and should go in a separate issue)The text was updated successfully, but these errors were encountered: