Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54348 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57660 invoked from network); 4 Aug 2011 11:18:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Aug 2011 11:18:57 -0000 Authentication-Results: pb1.pair.com smtp.mail=lists@rotorised.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=lists@rotorised.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain rotorised.com from 203.88.115.241 cause and error) X-PHP-List-Original-Sender: lists@rotorised.com X-Host-Fingerprint: 203.88.115.241 ironport1-mx.cbr1.mail-filtering.com.au Received: from [203.88.115.241] ([203.88.115.241:33687] helo=ironport1-mx.cbr1.mail-filtering.com.au) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9A/D6-18399-D108A3E4 for ; Thu, 04 Aug 2011 07:18:54 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap8EAKR/Ok6va78L/2dsb2JhbABChEekFIFAAQEFI1UBEAsOCgICBRYLAgIJAwIBAgFFBg0BBwEBt2eRZIErhAeBEASYAotv X-IronPort-AV: E=Sophos;i="4.67,315,1309701600"; d="scan'208";a="457072391" Received: from ju001lcs02.dfw.the-server.net.au (HELO ju001lcs02.dfw.the-server.com.au) ([175.107.191.11]) by ironport1-mta.cbr1.mail-filtering.com.au with ESMTP; 04 Aug 2011 21:18:49 +1000 Received: from [121.208.5.54] (helo=[192.168.0.2]) by ju001lcs02.dfw.the-server.com.au with esmtpa (Exim 4.69) (envelope-from ) id 1Qovwr-0035Vy-Ff; Thu, 04 Aug 2011 21:18:46 +1000 Message-ID: <4E3A8014.1030503@rotorised.com> Date: Thu, 04 Aug 2011 21:18:44 +1000 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: Lazare Inepologlou CC: Rasmus Lerdorf , internals@lists.php.net References: <4E3A48F2.4000503@lerdorf.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] An implementation of a short syntax for closures From: lists@rotorised.com (Ryan McCue) Lazare Inepologlou wrote: > Thank you for your interest. This is just a proposal that I have tested and > works. Of course, the final syntax can be different. Syntax is always a > matter of taste :-) As much as I love the idea, I have to agree that using | doesn't really make sense here and actually makes the readability worse, IMO. However, I can't really think of a better operator. ( $x ) => $x + 1 for example would be ambiguous if used in an array definition, but is otherwise the best in terms of readability. -- Ryan McCue