Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #12707
| Date | 2011-09-03 09:50 -0700 |
|---|---|
| From | Stephen Hansen <me+list/python@ixokai.io> |
| Subject | Re: [Python-ideas] allow line break at operators |
| References | (10 earlier) <1315023501.31777.YahooMailNeo@web121514.mail.ne1.yahoo.com> <87aaamjgvh.fsf@uwakimon.sk.tsukuba.ac.jp> <1315036271.77996.YahooMailNeo@web121504.mail.ne1.yahoo.com> <878vq6j7og.fsf@uwakimon.sk.tsukuba.ac.jp> <1315046028.59053.YahooMailNeo@web121512.mail.ne1.yahoo.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.737.1315068637.27778.python-list@python.org> (permalink) |
[Multipart message — attachments visible in raw view] - view raw
On 9/3/11 3:33 AM, Yingjie Lan wrote: > but at least we can have such 'freedom' :) Freedom is not and never has been, IMHO, a virtue or goal or even desire in Python. Where it occurs, it is at best a happy coincidence, and even if that happy coincidence happens often, it is not a design feature, IMHO. Simplicity and readability are virtues in Python. Freedom is even declared a vice to be avoided by the Zen, that holy document which defines all things Pythonic in clear and unambiguously absolute terms*. Looking over this whole thread at the various examples -- they add complication (a vice!). Complication to the parser, complication to the language itself and worse, understanding of code (as your head has to parse things too), all for what? So you don't have to use parens, which quite explicitly (another virtue!) do the job, to wrap around a long expression? Escaping newlines is arguably a bit on the ugly side (a vice!), so maybe the proposal has a little weight there, but since you can just avoid that by using parens, that's pretty much nullified. (Since it is also a virtue to offer only the Dutch way of doing things -- at least without hiding the alternatives in modules with a little bit of shame -- and this is clearly a case of the Dutch liking limited use of grouping parens). There just isn't even vaguely enough justification based on Python-virtues (readability, simplicity, explicitness, things like that) to even kind of make it worth the complication. -- Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog: http://meh.ixokai.io/ * Obvious exaggeration :P
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Re: [Python-ideas] allow line break at operators Stephen Hansen <me+list/python@ixokai.io> - 2011-09-03 09:50 -0700 Re: allow line break at operators rantingrick <rantingrick@gmail.com> - 2011-09-04 09:37 -0700
csiph-web