On 11/02/16 18:07, Stanislav Malyshev wrote:
>> It does not worth the effort having other RFCs for
>> >  - $str{} = 'string'
> Correct, because nobody needs it and it is a bad idea.
> 
>> > I agree small changes are easier to review, but it may leave lots of
>> > obvious inconsistency in PHP. We have too many of them already.
> If you have examples of "obvious inconsistency", name them and we will
> discuss it. {} is not such example.

One thing that everybody agrees on is that the procedural API for arrays
is 'somewhat clunky'? But fixing it by renaming, changing parts to
better match other parts and so on has hit brick walls because of BC.
That an OO array API that is consistent and expandable has also been
agreed in the past, but no one has the time or 'urge' or pursue that
path? Along with the Unicode string OO extension?

So do we not need perhaps a clean road map on the procedural API to
establish just where things like 'negative string offsets' fit into the
whole picture? That array and string API's are now inextricably linked
had been pointed out in the past and we now have to live with the
results, but a PHP8 change may be to split the two syntaxes so one can
look at code and not have to work out if some variable buried in a
cleaver piece of software is in indexed string or simply an array element?

-- 
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk

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

Reply via email to