Re: Re: An implementation of a short syntax for closures

From: Date: Thu, 04 Aug 2011 21:02:40 +0000
Subject: Re: Re: An implementation of a short syntax for closures
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-54390@lists.php.net to get a copy of this message
Haha, yes indeed. In fact my Thunderbird was changing them to sad smileys until I disabled emoticons! Colon is one of many possibilities. Your argument goes back to whether or not PHP should have short-hand lambdas in general. It's looking like the majority of people think it shouldn't. On 04/08/2011 21:53, Johannes Schlüter wrote:
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


« previous php.internals (#54390) next »