News for hackers. Stuff that matters.
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.
Re:Python's sad, unimaginative Enum by tomp on Tuesday May 14, 2013 @09:52AM (#5704786)
What prevents me from making a third subclass, Undetermined?

ADTs and enums are meant to prevent this.

Re:Python's sad, unimaginative Enum by gnaritas on Tuesday May 14, 2013 @02:54PM (#5707160)
> What prevents me from making a third subclass, Undetermined?

Smalltalk isn't about preventing things, it's about enabling them.