Re: [RFC] [Discussion] Short Closures
| From: | Sara Golemon | Date: | Wed, 02 Sep 2015 21:49:20 +0000 |
| Subject: | Re: [RFC] [Discussion] Short Closures | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-88015@lists.php.net to get a copy of this message | ||
On Mon, Aug 31, 2015 at 12:29 PM, Bob Weinand <bobwei9@hotmail.com> wrote:
> The short Closures RFC:
> https://wiki.php.net/rfc/short_closures
>
I just want to toss in my two cents as someone who's been using short
closures on a PHPish platform for some time already, because
predictions are one thing, experience in another.
The first time I saw "==>" I was like "what the eff?", but then you
know what I did? I looked up what it did, and I haven't had a problem
reading it since. In fact, I have a much easier time reading a short
lambda than an over verbose function declaration sitting in the middle
of another expression.
I don't think PHP needs to adopt every feature that the majority of
the most used languages have chosen to implement, but this one should
really be a no-brainer, regardless of which token is used. Because
code-beauty does matter. Beautiful code is code that is easier to
maintain, and code that is easier to maintain is often more secure and
reliable.
That's all.
-Sara