Re: Re: An implementation of a short syntax for closures
| From: | Johannes Schlüter | Date: | Thu, 04 Aug 2011 20:53:36 +0000 |
| Subject: | Re: Re: An implementation of a short syntax for closures | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-54388@lists.php.net to get a copy of this message | ||
On Thu, 2011-08-04 at 21:17 +0100, Jezz Goodwin wrote:
> :($x)=>$x+1;
":(" looks quite sad. I also assume you know that : is a division. In a
more complex situation this might, on first sight, be mistaken as a
division by $x or such.
Mind that a line of code typically is read way more often than written.
Readability matters. PHP in many areas makes a good thing by having
keywords here and there.
johannes