Re: Syntactic improvement to array

From: Date: Sun, 04 Feb 2007 18:37:49 +0000
Subject: Re: Syntactic improvement to array
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-27758@lists.php.net to get a copy of this message
Ilia Alshanetsky wrote:
On 4-Feb-07, at 1:14 PM, Pierre wrote:
On 2/4/07, Ilia Alshanetsky <ilia@prohost.org> wrote:
I personally find array extremely clear, in recent weeks I had to do A LOT of JavaScript work where the array syntax works in a manner you suggest for PHP and its a massive pain. It does not make for a very clear code. I think the syntax you propose is extremely confusing and we should stick to what we have right now.
If someone does not like this new syntax, he can stick to array(). It is in no way an argument to refuse the new syntax addition.
If you want to make PHP into Perl that's a fine goal I suppose, however that's not something I want to participate in.
For what its worth, I dont really see a good reason for this addition. But its also not something I feel so strongly about that I really think its critical. I am much more concerned about adding fatal errors for OO strictness violations (ups .. i am about to high jack the thread to bring up E_DEPRECATED again). regards, Lukas

« previous php.internals (#27758) next »