Re: [RFC] Bare Name Array
| From: | Derick Rethans | Date: | Mon, 02 Jun 2014 08:47:43 +0000 |
| Subject: | Re: [RFC] Bare Name Array | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-74692@lists.php.net to get a copy of this message | ||
On Sun, 1 Jun 2014, Andrea Faulds wrote:
> Good evening,
>
> I have created an RFC containing two proposals.
>
> The first is a less cumbersome syntax for arrays. At present, string
> keys in arrays are declared like this:
>
> “stringKey” => 3,
>
> That’s a whole five characters, seven including spaces, for your most
> common case (identifier-like key). In JavaScript, you can avoid
> quoting the key for this common case. I propose something similar for
> PHP. Where the key fits the profile of IS_STRING, this RFC proposes
> that you can do this instead:
>
> stringKey: 3,
We already voted no for this when discussing the short array syntax. See
the vote under "Array short syntax" at
https://wiki.php.net/todo/php54/vote
cheers,
Derick
--
http://derickrethans.nl | http://xdebug.org
Like Xdebug? Consider a donation: http://xdebug.org/donate.php
twitter: @derickr and @xdebug
Posted with an email client that doesn't mangle email: alpine