Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88100 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34879 invoked from network); 7 Sep 2015 17:20:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Sep 2015 17:20:24 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.181 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.212.181 mail-wi0-f181.google.com Received: from [209.85.212.181] ([209.85.212.181:32776] helo=mail-wi0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0E/00-34134-757CDE55 for ; Mon, 07 Sep 2015 13:20:24 -0400 Received: by wiclk2 with SMTP id lk2so95137308wic.0 for ; Mon, 07 Sep 2015 10:20:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=WaO8cCFPZ3M+Jkve5GfPtH9o3A7SGhdPWumdoQG9+k4=; b=V5cb3Og3pleufgOstasqkARJT2WX8T/wQUfAEMxQi/8HPhxfIJBtmMBn7TIGgYD749 G6sRQZLtjhuQ602tuadV5BXMCfRvDULHM5eybVpsKz18EQMpwQcH0CjYpjFNI3ArAUDr evdkTzgLR/EseX1ETgpu4iPvK4SWTn2JNuyJb1e1TwAW4VaoEo1BP50TWEDRhiecVH70 lsF2w2Uvpb3lgYGW8+Mmcpv1ZcoXshmMIstASGP5Eqtf7MdrtDBk0tWhb7ECcaV9uUSj cPLZNXNCclh+OAKixJvwDPOLDeFCyt7vyATGCKsC/Vu5zQxjgxrXHjZGoB2Lnp5+rZDZ yNxw== X-Received: by 10.194.172.233 with SMTP id bf9mr37875719wjc.107.1441646421194; Mon, 07 Sep 2015 10:20:21 -0700 (PDT) Received: from [192.168.0.134] ([62.189.198.114]) by smtp.googlemail.com with ESMTPSA id pe1sm1334758wic.20.2015.09.07.10.20.20 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 07 Sep 2015 10:20:20 -0700 (PDT) To: Levi Morrison References: <55E77CA9.7050609@gmail.com> <55E81959.6040305@gmail.com> <55ED817B.5030109@gmail.com> Cc: internals Message-ID: <55EDC718.9080508@gmail.com> Date: Mon, 7 Sep 2015 18:19:20 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] [Discussion] Short Closures From: rowan.collins@gmail.com (Rowan Collins) Levi Morrison wrote on 07/09/2015 17:56: >> >Sort of - the chaining is far from self-explanatory, and some of it is still >> >rather artificial. For instance, surely map would in reality have been a >> >named function: >> > >> >function map($fn) { >> > return $input ~> { >> > foreach ($input as $key => $value) { >> > yield $key => $fn($value); >> > } >> >}; > It's really bothering me that you have a mismatched curly brace. :D > Oops, sorry! Here you go: } :)