Case sensitivity

M.-A. Lemburg mal at lemburg.com
Fri Feb 21 14:35:39 EST 2003


Alex Martelli wrote:
> Lexy Zhitenev wrote:
>    ...
> 
>>Beginners should get used to this style of programming, like they get used
>>to block idents in Python. That is my opinion.
> 
> 
> So introduce a beginner to the excellent and very useful
> module mx.DateTime and explain to him, or her, how and
> why he or she needs to memorize (or continuosly check or
> try) that the functions named (e.g.) 'today', 'localtime',
> or 'add_century' MUST be lowercase, while (e.g.) functions
> 'TimeFrom' and 'Age' and 'Time' MUST be mixed-case.  Pah.
 >
> Where's the added value in requiring all of this extra
> memorization or checking?!   Not only of beginners, but of
> all who use this deservedly popular module, too -- and
> of course many other modules.  Really, case sensitivity
> gives no substantial added-value, it's just a small but
> negative impact on programmer productivity.  Pity.

Simple: All lower case is for functions and helpers,
mixed case for object constructors and classes.

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Software directly from the Source  (#1, Feb 21 2003)
 >>> Python/Zope Products & Consulting ...         http://www.egenix.com/
 >>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
________________________________________________________________________
Python UK 2003, Oxford:                                     39 days left
EuroPython 2003, Charleroi, Belgium:                       123 days left






More information about the Python-list mailing list