Re: AW: [PHP-DEV] [RFC] [Discussion] Short Closures
| From: | Nikita Nefedov | Date: | Mon, 07 Sep 2015 11:21:30 +0000 |
| Subject: | Re: AW: [PHP-DEV] [RFC] [Discussion] Short Closures | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-88088@lists.php.net to get a copy of this message | ||
On Mon, 07 Sep 2015 11:46:18 +0300, Robert Stoll <php@tutteli.ch> wrote:
Hi Bob--> is a shift-reduce conflict. It's undecidable if this expression should return boolean or a closure:-----Ursprüngliche Nachricht----- Von: Bob Weinand [mailto:bobwei9@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 nomasterbranch 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.phpI would like to see a short syntax for closures in PHP but would suggest to use different symbols for the operator. Why not use --> ?
$foo-->$bar (is it $foo --> $bar or $foo-- > $bar)