declaration of variables?

André Jonsson tatsujin at spamgoeshere.despammed.om
Mon Feb 17 02:43:31 EST 2003


Carl Banks wrote:
> Andr? Jonsson wrote:
> 
>>Alex Martelli wrote:
>>
>>>>:-)  I mostly meant that Python seems more "aware" than most other
>>>>:languages of
>>>>usability and readability. Do those not count?
>>>
>>>Of course; they're the main reasons Python avoids declarations.
>>
>>Dare I quote the Python Zen? "Explicit is better than implicit". I
>>concurr, declaring a variable explicitly is better than just
>>implicitly using, seemingly arbitrary, ones.
> 
> Sure, if you're prepared to have a sentence fragment from Python Zen
> thrown back at you.
> 
> "Although practicality beats purity."
> 
> Obviously, the practicality of not having to type a zillion
> declarations was judged to be more important than the explicitness of
> having them.

Yes, I guess it's a matter of taste. And in this kind of dynamic language it makes 
kinda sense, I agree.


/André





More information about the Python-list mailing list