Enumerated types can get in the way of fast and safe iteration
nightlight.conductor.com
Enumerated types can get in the way of fast and safe iteration
1–3 of 3 posts
Re: Enumerated types can get in the way of fast and safe iteration
#2Personally, my most wanted feature for enums in general is a way to distinguish between "final" enums - that are intended for enums that cannot change, and a modifiable enums, where they can change and a lack of default case throws a syntax error.
Unfortunately, there is no way to enforce someone not changing a "final" enum.
Re: Enumerated types can get in the way of fast and safe iteration
#3Default cases are your friend. Personally, my most wanted feature for enums in general is a way to distinguish between "final" enums - that are intended for enums that cannot change, and a modifiable enums, where they can change and a lack of default case throws a syntax error. Unfortunately, there is no way to enforce someone not changing a "final" enum.
http://mail-archives.apache.org/mod_mbox/thrift-user/201311....