You are here: Re: Breaking backwards compatibility - good or bad? « PHP Programming Language « IT news, forums, messages
Re: Breaking backwards compatibility - good or bad?

Posted by Wayne on 12/22/05 12:22

On 22 Dec 2005 01:40:17 -0800, tony@marston-home.demon.co.uk wrote:

>> There is no legitimate reason to have variables named $foo, $foO,
>> $FOO all refering to the same thing.
>>
>> I will however concede that there is also no reason that $foo, $foO,
>> and $FOO should point to different things either! Which is your main
>> objection and I agree.
>
>Your second statement contradicts the first, but at last you agree that
>having $FOO and $foo point to different things is not a good thing.

It's not exactly a contradiction... I wouldn't allow both $foo and
$FOO in the same program. In a case-insentive language that's
allowed. I would want that completely disallowed.

That's a bit difficult in a free-form language like PHP but in
languages with variable declarations, the variable would have to match
the declared case otherwise it would be an error.

 

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

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