declaration of variables?

Carl Banks imbosol-1045436396 at aerojockey.com
Sun Feb 16 18:28:52 EST 2003


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.


-- 
CARL BANKS




More information about the Python-list mailing list