On 7/1/10 5:41 AM, Bruno Desthuilliers wrote:
Stephen Hansen a écrit :
On 6/30/10 10:37 PM, Aahz wrote:
It may not be "the" primary concern, but elegance certainly is *a*
primary concern.
I concur.
Its not explicitly stated, but it is the Zen 0. This is further
supported by its implied presence in many of the Axioms and Truths of
the Bots.
"Beautiful is better then ugly"; and then the praise of the explicit,
of simplicity, of readability.
Elegance is a prime concern of Python, as it is the natural result of
the Doctrines of Pythonicity. It may not be stated as a rule, but it a
the reward that we are given for following the path of enlightenment.
"Elegance" (just like "beauty") is in the eyes of the beholder.
Explicitness, simplicity and readability are indeed primary concerns in
Python's design, but "elegance" is not. Now you'll of course find Python
mostly elegant *if* you value expliciteness, simplicity and readability,
but that's only because your definition of "elegant" happens to match
Guido's.
But see, here I disagree with you, because I do think beauty -- as seen
by Guido -- and elegance -- as seen by Guido -- *are* a prime concern of
Python's design.
Sure, those are subjective things, and not everyone will have the
absolute same opinion on them. But there is an overriding sense of style
and taste (in terms of code) which went into the design of the language
and remained through its evolution, that is a very real and important
part of the language we have today.
A big difference between those people who like and really enjoy using
Python verses those who prefer other solutions does come down to a sense
of taste and compatibility with the Guido's taste. Some people never get
past the revulsion of 'self' and whitespace.
Certainly: there's a lot *more* then just taste at issue (I don't mean
to trivialize those who select other solutions for reasons of more
substance then style), and some people can be fans even without fully
embracing Guido's definition of beauty and elegance.
But please gentlemen, let's not fight on this. This no religion, there's
no dogma here, and no heretic to burn.
The religious-speak was a joke :) I'm not sure I remember fighting
though, either way.
--
... Stephen Hansen
... Also: Ixokai
... Mail: me+list/python (AT) ixokai (DOT) io
... Blog: http://meh.ixokai.io/
--
http://mail.python.org/mailman/listinfo/python-list