Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #45253
| References | <mailman.1619.1368437093.3114.python-list@python.org> <5190bdac$0$29978$c3e8da3$5496439d@news.astraweb.com> |
|---|---|
| Date | 2013-05-14 03:36 +1000 |
| Subject | Re: Python's sad, unimaginative Enum |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1635.1368466597.3114.python-list@python.org> (permalink) |
On Mon, May 13, 2013 at 8:17 PM, Steven D'Aprano <steve+comp.lang.python@pearwood.info> wrote: > Let's look at his major criticisms: > > 1) values aren't automatically generated. > > True. So what? That is the *least* important part of enums. I stopped following the -ideas threads about enums, but IIRC autogeneration of values was in quite a few of the specs early on. So you can probably find the arguments against it in the list archives. FWIW, though, I do like C's autogeneration of enum values - but use it in only a small proportion of my enums. It's not a terrible loss, but it is a loss. ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Python's sad, unimaginative Enum Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-05-13 10:24 +0100
Re: Python's sad, unimaginative Enum Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-05-13 10:17 +0000
Re: Python's sad, unimaginative Enum Chris Angelico <rosuav@gmail.com> - 2013-05-14 03:36 +1000
Re: Python's sad, unimaginative Enum 88888 Dihedral <dihedral88888@googlemail.com> - 2013-05-14 18:21 -0700
csiph-web