Re: [RFC] Short syntax for anonymous functions
| From: | Bob Weinand | Date: | Tue, 19 Feb 2013 13:34:25 +0000 |
| Subject: | Re: [RFC] Short syntax for anonymous functions | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-65946@lists.php.net to get a copy of this message | ||
Hi,
I don't really like to write every time a "long" 'function()', only for
passing a little callback like 'function ($v) { var_dump($v); }'...:
Nice proposal, but writing the last argument outside of the function call could be confusing... An
user-function is not a language construct (like while etc.)
regards,
Bob
Am 19.2.2013 um 13:57 schrieb Marcello Duarte <mduarte@inviqa.com>:
> Inspired by Sara, here is another RFC, I finally got around to draft:
>
> https://wiki.php.net/rfc/short-syntax-for-anonymous-function
>
> Please feedback,
> --
> Marcello Duarte