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 08/21/06 08:49

"Geoff Berrow" <blthecat@ckdog.co.uk> wrote in message
news:8ji8e21ol666varbimmaj1nh1m0g5u5q0h@4ax.com...
> Message-ID: <eb4bho$dlk$1$8302bc10@news.demon.co.uk> from Tony Marston
> contained the following:
>
>>> I guess it's going to really piss you off to learn that functions in PHP
>>> are case insensitive, huh?
>>
>>No, I am FOR case insensitivity and AGAINST case sensitivity. You
>>obviously
>>have not been reading what I have been writing.
>
> I have. I just wondered why you were arguing for something that already
> exists.

Not quite true. It does not exist in ALL languages (Visual Basic,for
example, is case *preserving* not case *sensitive*) and in some languages it
is only partially implemented (PHP, for example, is case sensitive with
variable names but *not* for function names).

To say that it is *the standard* is therefore incorrect. It may be with some
people but not for others. There are *some* people who wish to extend cas
sensitivity in PHP to include function names forno goodreason other than
*they* consider it to be *the standard*. Phooey!

To say that case sensitvity is not a problem if all names are written in
consistent case does not disguise the problem that if you are not aware of
the case sensiive nature of the language, or if you *accidentally* use the
wrong case, then this can cause problems that are difficult to track down.
Even worse, the *deliberate* use of using different case with different
instances of the same variable or function name is a surefire way of
producing obfuscated and unmaintainable code.

Standards to get around this problem are irrelevant if the *accidental* or
*deliberate* use of this *feature* can produce unmaintainable code. It is my
view that this feature should *NOT* be extended.in *ANY* language, in fact
it should be phased out for the simple reason that it serves no useful
purpose. Case sensitivity does not *solve* any problems therefore it is a
solution that is not required. Instead it can, if abused, cause serious
problems, and should thereore be removed. In my humble opinion, that is.

> If PHP went fully case sensitive, all my code should still work because
> I try to be consistent. For all sensibly written programs, including
> your own I imagine, there would be no problem. However, I can't say the
> same about moving the other way. So realistically, that's not going to
> happen.
>
> TBH Tony, I can't see why you continue to argue the point.

Then you are blind to the logic of my arguments.

--
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

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