|
Posted by Shelly on 10/25/86 11:54
"Tony Marston" <tony@NOSPAM.demon.co.uk> wrote in message
news:ean53g$rlk$3$8300dec7@news.demon.co.uk...
>
> "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
You said it all right here - **YOU** prefer it that way, ergo that it the
right way! Talk about trying to impose your preferences on the entire
community!
Frankly, there is no reason why the computer could not know which is which
simply by either having a declaration or by its first usage. There is no
real need for the dollar sign. My guess is that it was put in for
readability and identification. Gee, that is the same reason as case
sensitivity.
Shelly
Navigation:
[Reply to this message]
|