Re: Re: Short syntax for array literals [...]
| From: | Derick Rethans | Date: | Wed, 28 May 2008 06:31:32 +0000 |
| Subject: | Re: Re: Short syntax for array literals [...] | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-37941@lists.php.net to get a copy of this message | ||
On Wed, 28 May 2008, Jani Taskinen wrote:
> Stanislav Malyshev kirjoitti:
> > > please add your votes
> >
> > I'm +1.
> >
> > BTW - how hard would it be to add voting interface to the wiki?
>
> For the record: I'm -1. array() is enough.
> Ridiculous idea to begin with..and please no more voting, isn't there enough
> spam already?
I agree on both points. I've mentioned this before as well, but I'll
repeat. There is no reason to add another syntax for *exactly* the same
thing, especially because it's ungoogable and confusing if you have to
read code like:
$a = [8,['a','b','c'],'foo'];
$b = $a[8][1];
Please let's not turn PHP into unreadable syntax like perl usually
advocates. Besides this, it's only really useful for multi-dimensional
arrays - and if you go there you've most likely lost anyway.
regards,
Derick
--
Derick Rethans
http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org