3 ms·
Can you give some examples other than C, C++, and C# where this is true? Most languages either don't have them as definable types, are C based and therefore map
by thethirdone 7y ago
Can you give some examples other than C, C++, and C# where this is true? Most languages either don't have them as definable types, are C based and therefore map them to integers, or actually limit values.
AFAIK, python, java, rust, ocaml, haskell, and swift all have enums that actually limit values.
- t-writescode 7y agoYou can do bitwise operations in Java https://stackoverflow.com/questions/6282619/is-there-a-way-to-bitwise-or-enums-in-java https://stackoverflow.com/questions/6282619/is-there-a-way-t...