Reply to Re: Case sensitivity in programming languages.

Your name:

Reply:


Posted by Tony Marston on 08/06/06 09:08

"Geoff Berrow" <blthecat@ckdog.co.uk> wrote in message
news:du9ad2dj6gqrrq1ti15h4ms0li23en9bvj@4ax.com...
> Message-ID: <eb29q4$htf$2$8300dec7@news.demon.co.uk> from Tony Marston
> contained the following:
>
>>
>>Imagine you are working on a program and you come across a refenece to a
>>function called readfile(). You don't know what it does exactly. so you
>>look
>>it up Ten some time later you come across a reference to a function called
>>readFile(). You don't notice that one letter has changed case, so you
>>don't
>>realise that it is not the same function as the one you remember and
>>therefore has completely different behaviour and possibly completely
>>different consequences. Later on you discover that there is a whole group
>>of
>>*different* functions which have exactly thesame spelling, but where the
>>only difference is a change of case in one or two letters.
>
> 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.

PHP does not allow me to create *different* functions with the same spelling
but *different* case. Thus readfile(), readFile()and ReadFile() are all the
same in PHP 4 or 5. I am fighting against moves to change this as IMHO it
will lead to obfuscated and unmaintainable code.

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

[Back to original 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

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