You are here: Re: array() VS Array() « PHP Programming Language « IT news, forums, messages
Re: array() VS Array()

Posted by Tony Marston on 05/15/06 13:58

"Andy Jeffries" <news@andyjeffries.co.uk> wrote in message
news:pan.2006.05.15.09.54.44.663938@andyjeffries.co.uk...
> On Sun, 14 May 2006 16:38:26 +0100, Tony Marston wrote:
>> The removal of case-insensitive functions names would be a totally WRONG
>> move IMHO as it would serve no useful purpose. The argument "to be
>> consistent with other languages"
>
> I'd say a better argument would be so it's consistent with itself.
> Variable names and member variables are case-sensitive so it's counter
> intuitive to a beginner to have the language partially case-sensitive.
>
> Just MHO....

But if a language allows the same name to mean different things if specified
in a different case this could lead to code which is confusing and therefore
difficult to maintain. It *should* be the primary objective of every
language to avoid such features instead of deliberately implementing them.
This is why the GOT verb is frowned upon and excluded from many languages,
and why the ALTER verb in COBOL is considered an absolute no-no.

In the English language a word has only one meaning regardless of case (such
as 'dog', 'Dog' and 'DOG') so why should computer languages be any
different?

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

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