Re:Python's sad, unimaginative Enum
by gnaritas on Sunday May 12, 2013 @07:00PM
(#5696240)
True and false work fine as singleton subclasses of the abstract class Boolean; see Smalltalk.
[ Parent
| on HN ]
What prevents me from making a third subclass, Undetermined?
ADTs and enums are meant to prevent this.