Re: [RFC] Bare Name Array
| From: | Stas Malyshev | Date: | Sun, 01 Jun 2014 18:13:29 +0000 |
| Subject: | Re: [RFC] Bare Name Array | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-74666@lists.php.net to get a copy of this message | ||
Hi!
> 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,
You can already do stringKey => 3 :) And saving characters is not really
a big priority. Changing language syntax and making millions of people
to learn new syntax just to save a couple of chars does not look like a
big win to me.
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227