Markos Theocharis
Markos Theocharis
> when converting old 2.5 code to 3.0 I noticed I changed all enums to a bunch of `@define`, which made me realise `enum` would work better as a preprocessor...
> If you mean Rust's those are too complex and don't feel necessary in Clue (since tables) No that. I just mean that the enum should have a name. The...
> A name would really only be useful for type checking, which is not yet a thing but we don't really need types to implement it it would just be...
> The point of enums is to define state constants more quickly > But since those states are just constant numbers it would be better to make them a compile...
if you were to make a library which should also work in lua the the enum must be easy to use to use in lua
I guess if the difference is clear for everyone it they can satisfy both use cases
> `local enum` could error saying to use `@enum` instead > While `global enum` will work but give a warning no need
> I mean `local enum` would be deprecated so it would error anyway what if somebody wanted to just use a named enum in the local scope?
> They use `@enum` but @enum is not a named enum, which has some use cases outside of a library
> I doubt naming enums will be useful.. it still has its uses and I would use it for some things