On May 9, 2011, at 2:38 AM, Stas Malyshev wrote:

> Hi!
> 
>> I see the array shortcuts are on your todo discussion list there. We
>> probably shouldn't get into a full discussion on that since it will span
>> hundreds of messages. But if any of the folks who voted no last time
>> around have changed their minds, it would be good to know. And before
>> deciding, try using MongoDB from PHP for a couple of weeks. :)
> 
> I agree on both discussion point and MongoDB point :) I think for things that 
> were already discussed extensively it makes sense to have a vote in case 
> people changed their minds and discuss at length only if they have something 
> new to say - like proposing new approach to the problem - which is this case 
> probably won't happen.

I'm changing my old vote, so -1 to +1. Changes and additions to syntax may (or 
may not) slow adoption, but since other such changes are being made then let's 
do it. And while explicit code (e.g., array()) is nice, many people are 
familiar with array shortcuts[1]. 

And on a related note for those at home, function array dereferencing[2] has 
already been implemented in trunk.

Also, there could probably be a discussion dedicated to arrays as other 
features/shortcuts like slicing has casually been discussed.

[1] https://wiki.php.net/rfc/shortsyntaxforarrays
[2] https://wiki.php.net/rfc/functionarraydereferencing

Regards,
Philip


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to