On 10 February 2016 at 14:34, François Laupretre <franc...@php.net> wrote:
> Hi,
>
> I just added support for '[]' on strings and '{}' to the PR.
>
> Examples :
>
> $string[] = 'a'; // equivalent to : $string[strlen($string)]
>
> $string{} = 'a'; // For consistency

Unless I'm missing some subtleties, that appears to just be a more
confusing version of string concatenation.

$string[] = 'a';

is equivalent to :

$string .= 'a';

Is that correct?

> This is not strictly in the scope of negative offsets. So, if you think it
> must be part of a separate RFC, I will remove it.

It seems unnecessary. Unless I've misunderstood what it does, it's
just a complete duplication of functionality we already have (, in a
way that is likely to confuse people, imo) and having duplicate
functionality is not so good.

At the very least it needs to be part of a separate vote option - but
my opinion is that it's not needed at all, and should be left out
entirely.

cheers
Dan

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

Reply via email to