
July 25, 2011
5:15 p.m.
On Jul 24, 2011, at 09:22 PM, Raymond Hettinger wrote:
I also don't care for enums and recommend against adding them to the language. IMO, it is something that makes good sense in statically compiled languages and is unnecessary for us. Not to mention, we already have several ways to do it (module and class namespaces for example).
IMHO, enums improve readability and debugging. For better integration with external systems (e.g. databases), enum values are compatible with integers. And this (Pdb) color <EnumValue: Colors.blue [int=3]> is much nicer than (Pdb) color 3 Cheers, -Barry