On Mar 20, 2015, at 14:17, Rowan Collins <rowan.coll...@gmail.com> wrote:

> It doesn't work *with that syntax*, because -1 is a valid key, just as 
> $thing[0] can't mean "first value of array" because it already means "value 
> with key 0". That's why I propose a new syntax such as $thing[@0], 
> $thing[@-1], etc.

I would just like to point out that the @ error suppression operator operates 
on expressions. Unfortunately, that means that also using @ as a slice operator 
makes the two ambiguous with each other in those contexts. The concept itself 
can still work, but it’d need a token other than @.

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

Reply via email to