Re: Re: [RFC] Arrow functions / short closures
| From: | Robert Hickman | Date: | Thu, 11 Apr 2019 08:45:10 +0000 |
| Subject: | Re: Re: [RFC] Arrow functions / short closures | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-105234@lists.php.net to get a copy of this message | ||
On Thu, 11 Apr 2019 at 00:43, Rowan Collins <rowan.collins@gmail.com> wrote:
>
> On 10 April 2019 21:56:41 BST, "Björn Larsson" <bjorn.x.larsson@telia.com>
> wrote:
> >Could then the \($x) syntax be a good compromise between
> >readability & implementation?
>
This syntax does make sense to me, although only as I've seen it
before in Haskell, which does something similar:
https://wiki.haskell.org/Anonymous_function
I think that people will get used to whatever becomes common.