Case sensitivity

David Mertz mertz at gnosis.cx
Sat Feb 22 00:56:24 EST 2003


"Terry Reedy" <tjreedy at udel.edu> wrote previously:
|> For example, "bar"  and "BAR" name the same variable;
|and Bar, BAr, bAr, bAR, baR, and  BaR.  For some reason, seeing that
|makes me want to screem.  I think our brains really are wired
|differently in this area.

Well.. yeah.  But in twenty years of programming in case-insensitive
languages, I never wrote or read any of those weird and disturbing
variations.  I see this canard whenever the discussion comes up... not
every obfuscation that is -possible- in a language is used in ordinary
programs.  If you like, I can write expressions in valid Python that you
REALLY do not want to look at.

Moreover, I would find it just as annoying to see variables named BAr,
bAr, bAR, baR, and BaR in a case-sensitive language where they name
different things.

If some other coder has the perversity to name a variable "MaXRecORdS"
in a case-sensitive language, it is almost impossible for me to refer to
that variable elsewhere; if the language were case-insensitive, I could
at least refer to it at "maxrecords" in my own code... of course, either
way, some special place in purgatory is reserved for the original coder.

--
 mertz@  _/_/_/_/ THIS MESSAGE WAS BROUGHT TO YOU BY: \_\_\_\_    n o
gnosis  _/_/             Postmodern Enterprises            \_\_
.cx    _/_/                                                 \_\_  d o
      _/_/_/ IN A WORLD W/O WALLS, THERE WOULD BE NO GATES \_\_\_ z e






More information about the Python-list mailing list