Re: Syntactic improvement to array
| From: | Pierre | Date: | Sun, 04 Feb 2007 21:27:05 +0000 |
| Subject: | Re: Syntactic improvement to array | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-27772@lists.php.net to get a copy of this message | ||
On 2/4/07, Zeev Suraski <zeev@zend.com> wrote:
At 20:14 04-02-07, Pierre wrote: Hi, On 2/4/07, Ilia Alshanetsky <ilia@prohost.org> wrote:What I mean is that the new syntax does not any drawback besides hurting a couple of people eyes (I'm pretty sure that most of our users will like it). The changes have no effect on how your scripts will run, not like the numerous changes we applied in 5.x until now. --PierreIf 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. We never believed in that approach and we're not about to start now :).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.