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

Posted by Tony Marston on 12/09/30 11:54

"Shelly" <sheldonlg.news@asap-consult.com> wrote in message
news:Gslzg.2333$0e5.990@newsread4.news.pas.earthlink.net...
> "Tony Marston" <tony@NOSPAM.demon.co.uk> wrote in message
> news:eakmf1$4g8$1$8302bc10@news.demon.co.uk...
>>
>> All you are doing, yet again, is identifying that the use of different
>> case was only introduced as a programmer convention in those languages
>> which make it difficult to differentiate between variables, constants,
>> functions and methods. Decent languages do not have such a problem, yet
>> you insist on making a programmer convention in one particular language a
>> requirement in all other languages for no good reason.
>
> Frankly, I find it a pain in the ass to have to prepend a blankety-blank
> "$" in fron of my variables. Why couldn't this language (PHP) be smart
> enough to know that what is on the left hand side is a variable? However,
> I accepted is a being part of the language and moved on -- rather than
> rant about it. If I want a constant, I can write it all in caps. (so
> much for languages that can "differentiate between a variable, etc.").

I prefer the PHP way. I have no problem with using foo, $foo, foo() and
$object->foo() to differentiate between constants, variables, functions and
methods. In fact the language which I used for 12 years before PHP used
$$foo for global variables and $foo$ for local variables. The fact that it
involves typing in a few more characters is totally irrelevant. It makes it
easy to read, and it is much more important that code be readable by humans
than by a computer.

--
Tony Marston
http://www.tonymarston.net
http://www.radicore.org

 

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

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