I always wonder how big an enum is in various languages. It's sizeof(enum) == sizeof(int) most of the time in C++ but not guaranteed AFAIK.
In Rust it's whatever the smallest possible size is, can also specify for c-like enums. (Enums in Rust can carry data so more like tagged unions)
-
-
That sounds reasonable and flexible. I've wanted to learned Rust but haven't actually done so far...
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.