Re: [RFC] Introduce Abstract Syntax Tree
| From: | Andrey Andreev | Date: | Fri, 15 Aug 2014 16:29:23 +0000 |
| Subject: | Re: [RFC] Introduce Abstract Syntax Tree | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-76562@lists.php.net to get a copy of this message | ||
On Fri, Aug 15, 2014 at 6:58 PM, Christoph Becker <cmbecker69@gmx.de> wrote:
> Andrey Andreev:
>
>> I'd personally find it horrible if $foo[$i] = $bar[$i++]; is executed
>> right-to-left, but given that your examples are a bit weird, I'm not sure
>> if mine is affected. Is it?
>
> Isn't that evaluated from right to left already since PHP 5.1.0? See
> <http://3v4l.org/Ivfdr#v510>.
>
> --
> Christoph M. Becker
Huh, I never suspected that. I've written a lot of code that relies on
increments in one-liners, possibly not for assignment though.
I better go and do some greps for this ...
Cheers,
Andrey.