Re: RFC: Short syntax for Arrays (redux)
| From: | Rasmus | Date: | Tue, 31 May 2011 22:06:34 +0000 |
| Subject: | Re: RFC: Short syntax for Arrays (redux) | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-52602@lists.php.net to get a copy of this message | ||
On 05/31/2011 02:59 PM, Michael Shadle wrote:
> Forgive me for injecting my $.02 here but what is the original reason
> for changing the most basic language syntax to be a little bit
> shorter?
>
> Is it hurting anyone to type out "array()" or something?
>
> I think it is silly that "shortening array syntax" is up for
> discussion but ensuring Unicode compatibility isn't a higher priority.
> Not to mention named parameters in functions. Or Consistent naming for
> functions str_* vs str*, needle/haystack ordering, etc. If you're
> wanting to augment or change fundamentals of the language why not
> clean some stuff up there first?
Because most of those can't be done without breaking millions of lines
of code out there. And a couple of people worked on Unicode for years
and got very little support. That is not a small project. This short
syntax for arrays is probably the most requested PHP feature right now
and we have a working patch that doesn't break any existing code so the
effort involved is minimal. If you have a working patch that solves the
Unicode issues, by all means, show us.
-Rasmus