|
Posted by Tony Marston on 12/17/50 11:55
"Tim Hunt" <tim.n.hunt@gmail.com> wrote in message
news:1154520242.006259.252860@i3g2000cwc.googlegroups.com...
>
> Tony Marston wrote:
>> "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.
>
> I disagree, the authors of php use many upper and lower case naming
> conventions.
But those are personal conventions, not language rules. The language allows
me to use whatever case I like.
--
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
Navigation:
[Reply to this message]
|