3 ms·
Ada does them well. They have attributes that allow for converting to and from integers and strings [1], and case statements have to be exhaustive or use a defa
by 13415 5y ago
Ada does them well. They have attributes that allow for converting to and from integers and strings [1], and case statements have to be exhaustive or use a default "others" clause.
[1] https://en.wikibooks.org/wiki/Ada_Programming/Types/Enumeration https://en.wikibooks.org/wiki/Ada_Programming/Types/Enumerat...