|
|
|
|
|
by coder543
2171 days ago
|
|
> they really are just integers, even more than in C# or C++, even though there is no implicit conversion. What do you mean by this? C#: https://repl.it/repls/ExhaustedDisgustingRam C++: https://repl.it/repls/BackGroundedRobot C# and C++ offer exactly the same thing that Go offers... enums that are really just integers. You can assign arbitrary values to those C# and C++ enums, even though you're not supposed to, just like in Go. Rust offers something truly better, where the enum abstraction doesn't leak at all. |
|
Note though that C++ allows using enums as bitfields, so some form of loading non-enumerated values has to be allowed.