Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54390 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14036 invoked from network); 4 Aug 2011 21:01:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Aug 2011 21:01:48 -0000 Authentication-Results: pb1.pair.com header.from=jezz.g@officechristmas.co.uk; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=jezz.g@officechristmas.co.uk; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain officechristmas.co.uk designates 188.39.46.83 as permitted sender) X-PHP-List-Original-Sender: jezz.g@officechristmas.co.uk X-Host-Fingerprint: 188.39.46.83 mail.eclipsehq.co.uk Received: from [188.39.46.83] ([188.39.46.83:42253] helo=mail.eclipsehq.co.uk) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EF/F0-08937-BB80B3E4 for ; Thu, 04 Aug 2011 17:01:48 -0400 Received: from [188.220.21.188] (helo=[192.168.1.66]) by mail.eclipsehq.co.uk with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.74 (FreeBSD)) (envelope-from ) id 1Qp53Y-000FMe-1t; Thu, 04 Aug 2011 21:02:17 +0000 Message-ID: <4E3B08F0.2000400@officechristmas.co.uk> Date: Thu, 04 Aug 2011 22:02:40 +0100 User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: =?UTF-8?B?Sm9oYW5uZXMgU2NobMO8dGVy?= CC: internals@lists.php.net References: <4E3AF896.2090106@officechristmas.co.uk> <4E3AFE62.3080200@officechristmas.co.uk> <1312491216.1541.35.camel@guybrush> In-Reply-To: <1312491216.1541.35.camel@guybrush> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: -2.9 X-SA-Exim-Connect-IP: 188.220.21.188 X-SA-Exim-Mail-From: jezz.g@officechristmas.co.uk X-SA-Exim-Scanned: No (on mail.eclipsehq.co.uk); SAEximRunCond expanded to false X-Authenticated-Sender: jezz.g X-Complaints: abuse@eclipsehq.co.uk X-Abuse: abuse@eclipsehq.co.uk (Please include full headers in abuse reports) Subject: Re: [PHP-DEV] Re: An implementation of a short syntax for closures From: jezz.g@officechristmas.co.uk (Jezz Goodwin) 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 > >