CamelCase versus wide_names (Prothon)

Peter Hansen peter at engcorp.com
Tue Apr 20 10:22:41 EDT 2004


Lothar Scholz wrote:
> After writing a few hundert thousands lines of code in Eiffel and a
> few ten thousands lines in Java i must say that lowercase wide_names
> are much much better to read. Someone else already mentioned this
> problem:
> 
>    smtp_message <-> SMTPMessage <-> SmtpMessage

What about SMTP_message?  If you don't deal with that issue,
you will doubtless get wide-namers who want to write it that
way instead of smtp_message.

If, on the other hand, you have a coding standard which insists
that acronyms be lower-cased, then the supposed problem you
mention above goes away, because whether you use wide_names or
mixedCase, you are consistently (not) capitalizing acronyms.

In other words, if it's a problem, it's a problem with
wide_names as well....

-Peter



More information about the Python-list mailing list