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
obviously i had 0 foresight when redesigning the enum system during the rewrite. they're not completely unusable currently, but only if you restrict yourself to flax code. For interoperating with C code, because enum case values are a 2-word struct, they become dumb.
we need the idea of a @raw enum that is literally a typesafe value, without any of that struct wrapping stuff with the index or whatever. Of course you lose type information, but it's not like we have any type introspection in the language now anyway.
The text was updated successfully, but these errors were encountered:
obviously i had 0 foresight when redesigning the enum system during the rewrite. they're not completely unusable currently, but only if you restrict yourself to flax code. For interoperating with C code, because enum case values are a 2-word struct, they become dumb.
we need the idea of a
@raw enum
that is literally a typesafe value, without any of that struct wrapping stuff with the index or whatever. Of course you lose type information, but it's not like we have any type introspection in the language now anyway.The text was updated successfully, but these errors were encountered: