Yet Another Case Question
Erik Max Francis
max at alcyone.com
Sun Feb 23 00:14:23 EST 2003
David Mertz wrote:
> Certainly people indeed do this. That part I can't argue against.
> Tell
> me why this is BAD, again? On the face of it, allowing such variation
> seems like the very purpose of case-insensitivity.
Is it good that there will now be inconsistent spellings, with each
programmer to a project contributing a different style? Doesn't that
make it harder for everybody to read it?
> This point is reasonable. I would get annoyed if CONSTANTS were
> spelled
> other than with uppercase. Then again, I would also get annoyed in
> almost the same way if the convention were used inconsistently in
> Python, e.g.:
>
> CONSTANT1 = 22
> constant2 = 38
>
> That isn't exactly the same problem as Erik lists.. but it is
> analogous.
> And can only be eliminated by draconian style guides (or widespread
> enough commonsense... the best solution to the other problem too).
The difference is that in a case sensitive language, whoever created the
identifier name gets to choose the style that's used. In a case
insensitive language, every programmer that uses it gets to use their
own.
--
Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/ \ And your daddy died for you / And I'll do the same
\__/ India Arie
Crank Dot Net / http://www.crank.net/
Cranks, crackpots, kooks, & loons on the Net.
More information about the Python-list
mailing list