You are here: Re: Case sensitivity in programming languages. « PHP Programming Language « IT news, forums, messages
Re: Case sensitivity in programming languages.

Posted by Chung Leong on 07/26/06 03:25

Shelly wrote:
> I disagree. Look at Java. There is a definite set of conventions there
> that readily identifies what kind of thing a name represents. For example,
>
> theName is the name of a variable
> TheName is the name of a class
> THENAME is the name of a constant
>
> I think that (a) the case sensitivity is useful and (b) it makes the code
> easier to read (when doen properly).
>
> Shelly

That's necessary, of course, only because a special character isn't
employee. I think PHP/Perl got it right in this regard. $var is
unambiguous and stands out.

To bring something new to this tired debate: In my PHP fork I
implemented what I call flex-case. The interpreter will spot word
boundaries per CamelCase rule in identifiers and insert underscores
into them. So $theName is the same as $the_name, and FileGetContents()
is the same as file_get_contents(). Might seem kind of weird but it
works quite nicely in practice.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация