On Mon, 07 Sep 2015 11:46:18 +0300, Robert Stoll <p...@tutteli.ch> wrote:

Hi Bob

-----Ursprüngliche Nachricht-----
Von: Bob Weinand [mailto:bobw...@hotmail.com]
Gesendet: Montag, 31. August 2015 21:29
An: PHP Internals
Betreff: [PHP-DEV] [RFC] [Discussion] Short Closures

I had this RFC in draft since some time, but delayed it due to all the ongoing PHP 7 discussions. Also we have no
master
branch to merge features in until 5.4 EOL. Thus I'm reviving this now.

Time for the first RFC targeting PHP 7.1 (assuming PHP 8 isn't going to be the next version ;-)):

The short Closures RFC:
https://wiki.php.net/rfc/short_closures

Hoping for constructive feedback,
Bob
--
PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

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`)

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

Reply via email to