[RFC][VOTE] Generalize support of negative string offsets

php.internals

François Laupretre

10 years ago
Hi, (sorry, posting again to force new thread) Starting vote about : https://wiki.php.net/rfc/negative-string-offsets Voting period ends in 2 weeks : Monday, March 7th 00:00 UTC. As, during the discussion, we talked about many related but off-topic subjects, please remember that the subjects below remain *out of scope of this RFC* and deserve their own thread : - Support '{}/[]' (empty braces) on string offset assignments, - Reserve/recommand '{}' syntax for string offsets and '[]' for arrays, - Auto-conversion of empty string to array on string offset assignment, - the same with true/false, - support '++/--' on string offsets... If you want to go further discussing one of these subjects, please create a new thread for this. Regards François

Pascal MARTIN

10 years ago
Le 19/02/2016 13:19, François Laupretre a écrit :
> Starting vote about : https://wiki.php.net/rfc/negative-string-offsets > > Voting period ends in 2 weeks : Monday, March 7th 00:00 UTC.
Hi, We talked about this RFC at AFUP and are +1, by a huge margin. Basically: more coherence between functions, behavior that's kind of expected by many, useful feature; and low risk of bc-break. Thanks for your work on this!
-- Pascal MARTIN, AFUP - French UG http://php-internals.afup.org/

François Laupretre

10 years ago
Le 19/02/2016 13:19, François Laupretre a écrit :
> > Starting vote about : https://wiki.php.net/rfc/negative-string-offsets >
Vote is over. RFC is approved with a score of 28 Yes to 0 No. Thanks to all who took time for discussion and vote. Can someone please review and merge the PR to the master branch, while I patch the documentation and the language spec. Thanks. Regards François