Re: [RFC] Generalize support of negative string offsets
| From: | Yasuo Ohgaki | 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 internals+get-91192@lists.php.net to get a copy of this message | ||
Hi Stas,
On Thu, Feb 11, 2016 at 3:27 PM, Stanislav Malyshev <smalyshev@gmail.com> 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
yohgaki@ohgaki.net