|
Posted by Tony Marston on 11/01/07 11:54
"Shelly" <sheldonlg.news@asap-consult.com> wrote in message
news:6HGzg.6581$gF6.1110@newsread2.news.pas.earthlink.net...
>
> "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.
I disagree. I *MUCH* prefer to see foo, $foo, foo() and $object->foo() to
differentiate between constants, variables, functions and methods than a
slight alteration in case. So do the authors of PHP, ad its millions of
users.
--
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
Navigation:
[Reply to this message]
|