Re: [RFC] Generalize support of negative string offsets

From: Date: Thu, 11 Feb 2016 06:43:44 +0000
Subject: Re: [RFC] Generalize support of negative string offsets
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Hi Stas,

On Thu, Feb 11, 2016 at 3:27 PM, Stanislav Malyshev <[email protected]> wrote:
>
>> I just added support for '[]' on strings and '{}' to the PR.
>>
>> Examples :
>>
>> $string[] = 'a'; // equivalent to : $string[strlen($string)]
>>
>> $string{} = 'a'; // For consistency
>
> That's probably not a good idea, and certainly is not good for the RFC -
> the patch now does two unrelated things.

RFC must maintain consistency across existing features/specifications,
IMHO. We already have too many inconsistencies and scattered RFCs will
make things worse certainly. Making patch and/or RFC simple is not the
reason why we have RFC, but to have full featured/discussed/consistent
changes to PHP.

Aren't we better to have consistent/complete RFCs almost always?

Regards,

--
Yasuo Ohgaki
[email protected]


Thread (57 messages)

« previous php.internals (#91192) next »