Re: Re: Short syntax for array literals [...]
| From: | Stanislav Malyshev | Date: | Wed, 28 May 2008 07:34:08 +0000 |
| Subject: | Re: Re: Short syntax for array literals [...] | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-37949@lists.php.net to get a copy of this message | ||
Hi!
I don't recall any languages to introduce new syntax because it's so handy to those who come from PHP and I see no reasons for us to do it either.If they don't do it and we do, people come from them to us and not the reverse. The reason is to make life easier for people. And I think current results - 21:8 - tell something.
In the same time, the [] syntax will definitely confuse people (wth? $a = [$a[1][2], 3]; /* wth does this mean? */I do not and will not believe that you - or anybody smart enough to use PHP - would seriously have any trouble understanding what that means. Arguing it is extraneous is one thing, but presenting PHP users as senseless robots hopelessly confused by even simplest concepts like using [] for arrays just doesn't make any sense. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com