Re: [VOTE] Uniform Variable Syntax

From: Date: Mon, 07 Jul 2014 14:42:34 +0000
Subject: Re: [VOTE] Uniform Variable Syntax
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-75314@lists.php.net to get a copy of this message
Hey:


On Mon, Jul 7, 2014 at 10:18 PM, Nikita Popov <nikita.ppv@gmail.com> wrote:
> Hi internals!
>
> I've started the vote on the Uniform Variable Syntax RFC:
>
>     https://wiki.php.net/rfc/uniform_variable_syntax#vote
>
> You can review the discussion about this RFC here:
>
>     http://markmail.org/message/mr4ihbubfbdxygci
>
> The vote requires a 2/3 majority and is planned to end on 2014-07-14. The
> RFC targets PHP 6.


sorry for didn't read the RFC before,

but I can not vote for yes.. here are some words in RFC:

1. "The current patch introduces a new “write context” issue. Namely
($foo)['bar'] = 'baz' will not behave this same was as $foo['bar'] =
'baz'. In the former case an undefined variable notice will be thrown
if $foo does not exist, whereas the latter does not throw a notice."

2. "As these changes only apply to some very rarely used syntax, the
breakage seems acceptable for PHP 6."


I don't think we should introduce a new thing which is not perfect or
"confused".. it looks like we fixed a mess with a new mess.

it make me think we should : "don't fix it until it is broken"

thanks


>
> Thanks,
> Nikita



-- 
Laruence  Xinchen Hui
http://www.laruence.com/


Thread (18 messages)

« previous php.internals (#75314) next »