case sensitivity and XML
Ian Parker
parker at gol.com
Thu May 25 06:32:45 EDT 2000
In article <392B40F0.324E0189 at cosc.canterbury.ac.nz>, Greg Ewing
<greg at cosc.canterbury.ac.nz> writes
>Fredrik Lundh wrote:
>>
>> so why not enforce these rules, just like we're enforcing the
>> indentation rules:
>>
>> >>> class foo:
>> SyntaxError: Class name should be Foo
>
>There are some precedents for this. Smalltalk requires
>global variable names to start with a capital. HUGS
>distinguishes type names from other names by whether
>they start with a capital. Some Eiffel compilers chide
>you if you don't spell class names in ALLUPPERCASE and
>other names in alllowercase.
>
I don't think I could return to programming in a language that
_required_ capitalisation or uppercase to indicate the purpose or
function of some name. I'm reminded of old Basic where a string was
indicated with a $ or somesuch. Isn't that a little like Perl. Almost
Hungarian.
--
Ian Parker
More information about the Python-list
mailing list