> > I would like to see a short syntax for closures in PHP but would
> > suggest to use different symbols for the operator. Why not use --> ?
> >
> 
> --> is a shift-reduce conflict. It's undecidable if this expression
> --> should
> return boolean or a closure:
> `$foo-->$bar` (is it `$foo --> $bar` or `$foo-- > $bar`)
> 
> --

You're right, I forgot about the post decrement operator.   What about -=> ? 
would look like a little rocket ^^ but well, it does not really look better 
than ~>


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

Reply via email to