Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54356 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83850 invoked from network); 4 Aug 2011 12:57:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Aug 2011 12:57:44 -0000 Authentication-Results: pb1.pair.com header.from=crocodile2u@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=crocodile2u@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.170 as permitted sender) X-PHP-List-Original-Sender: crocodile2u@gmail.com X-Host-Fingerprint: 209.85.220.170 mail-vx0-f170.google.com Received: from [209.85.220.170] ([209.85.220.170:49851] helo=mail-vx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 19/C0-13433-7479A3E4 for ; Thu, 04 Aug 2011 08:57:44 -0400 Received: by vxh24 with SMTP id 24so331807vxh.29 for ; Thu, 04 Aug 2011 05:57:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=A7bHWcpjL4E2WEaBndBKkqafd0DXUTG2faBjnjojIMA=; b=rbB1vArYKfIO3mGSSO7T3rs5xu/DfyRWWwwvMIvLRxLTmyyHvWXnV777xlI9LVX82J p2vx5rdDVYyloCHlZ6TuIFSiOfcJjFKxHkUAaczL41N+grVnJV/F/8dk4yhgN7DZTWgh GUeDRlDNYSPYirSOCYiQVO10bvJdTHx6H8oho= Received: by 10.52.94.165 with SMTP id dd5mr786622vdb.465.1312462661262; Thu, 04 Aug 2011 05:57:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.192.196 with HTTP; Thu, 4 Aug 2011 05:57:21 -0700 (PDT) In-Reply-To: <4E3A9549.6010803@daylessday.org> References: <4E3A48F2.4000503@lerdorf.com> <4E3A8014.1030503@rotorised.com> <1312457975.1541.7.camel@guybrush> <4E3A9549.6010803@daylessday.org> Date: Thu, 4 Aug 2011 16:57:21 +0400 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=20cf3071c9c2b49c6c04a9ad8601 Subject: Re: [PHP-DEV] An implementation of a short syntax for closures From: crocodile2u@gmail.com (Victor Bolshov) --20cf3071c9c2b49c6c04a9ad8601 Content-Type: text/plain; charset=ISO-8859-1 +1 - think everybody'd want their functions to be searchable and searching for complex patterns like "(function)|(\|\=\>)" would really be a headache. Btw, am I the only one to whom the proposed syntax seems kinda hieroglyphic? 2011/8/4 Antony Dovgal > On 08/04/2011 04:39 PM, Lazare Inepologlou wrote: > >> ... ( $x ) => $x + 1 for example would be ambiguous if used in an array >>> definition, but is otherwise the best in terms of readability. >>> >> >> ... people wanted an easy way to grep for function declarations >>> >> >> >> A new and unique operator (like the |=> I have proposed) is a solution >> that works because: >> > > Please stop that, it's not funny anymore. > > -- > Wbr, > Antony Dovgal > --- > http://pinba.org - realtime profiling for PHP > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --20cf3071c9c2b49c6c04a9ad8601--