Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97889 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11543 invoked from network); 20 Jan 2017 09:46:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jan 2017 09:46:10 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.45 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.215.45 mail-lf0-f45.google.com Received: from [209.85.215.45] ([209.85.215.45:32826] helo=mail-lf0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D9/82-00729-16CD1885 for ; Fri, 20 Jan 2017 04:46:09 -0500 Received: by mail-lf0-f45.google.com with SMTP id k86so53909798lfi.0 for ; Fri, 20 Jan 2017 01:46:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:user-agent:in-reply-to:references:mime-version :content-transfer-encoding:subject:to:cc:from:message-id; bh=1dw1UvbSWlcKgA5x+mc12nOANHFs9P3f7YmOrGdXM6Q=; b=jGUA36vCLJlvJIdvFEKo6JJP0jLQDcfgN5lRy+eyc5ljEO9AzkBg4Lobu06pxuDEGf u+AqlBIZn5Ffshjrn0uz50c5Vy4t75SteIZrGO+UUSCcAle/0uQlFOFBu3ERFZqQtGfh 0f9lc5fWZjXD++bqe3TSnD4/rrS0UTgfEcgpi/iS6WHGHx8BlYAOyUHKCpdBUH+PDj8d lIG78Dz36v8cjpgkNak20T45IQmO1AErA1UfxPE8yicAiqRLcfbDduUfYYjslljlNJLO 4U4AoNCT9o/VtF2TbvWjZ1ZkqcbXVSa5UUy1gLlwY+gPl086LnI+w6u+jCFaCrmVWa5H LdHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:subject:to:cc:from :message-id; bh=1dw1UvbSWlcKgA5x+mc12nOANHFs9P3f7YmOrGdXM6Q=; b=Vee4k0h7KnttlrhlKQVRomY49f0vtzgrZujaUDmK/pvX2qH1JDxdrTXx90F4La0RBV assUI+YC2QoMZ3oPzaLVdtgSy6kQ8Q/dxtXpnWy25+NeK4FldGE0M2fXb2K5p13Ya3gV opiXJcAw5eXex0wcGkB+GxWtNG/4myZfSzHV3tVj7tOsK8ZDeVcLizQSMTd/igT1pIlC ciZCTf/v8vRBsSgDaaiT10Xk2hSsuFATiQgNZyX0dJolXPxm6qh3N2ztbuYwbsw/AeDn jT3q5zwb5XUT9u5OOoxUepkKVjw1/t2ftxn8/fYTYjbgSFyHRcFrvD+Cl8a6oJH/NW6J DcYQ== X-Gm-Message-State: AIkVDXIiE+wl9EI7l9KJ7wpa56jO0+RekGIJmC1r5gWgxAHnqqjmwfj3XFP3mIHyk7EDXg== X-Received: by 10.46.84.6 with SMTP id i6mr5892152ljb.8.1484905566279; Fri, 20 Jan 2017 01:46:06 -0800 (PST) Received: from [10.61.224.130] (188.29.165.249.threembb.co.uk. [188.29.165.249]) by smtp.gmail.com with ESMTPSA id d16sm374969lfj.28.2017.01.20.01.46.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Jan 2017 01:46:05 -0800 (PST) Date: Fri, 20 Jan 2017 09:46:03 +0000 User-Agent: K-9 Mail for Android In-Reply-To: References: <3258a209-0b4f-aba7-370f-2d7bc2dfddfc@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable To: Levi Morrison ,Ryan Pallas CC: "internals@lists.php.net" Message-ID: Subject: Re: [PHP-DEV] Pipe Operator v2 From: rowan.collins@gmail.com (Rowan Collins) On 20 January 2017 00:59:59 GMT+00:00, Levi Morrison wrot= e: > >I empathize that you don't like string-name callables (I really don't >like them either) but this RFC helps avoid the string if you want to=2E >Consider > > // without my proposal: > array_map('trim', $input) > > // with it: > array_map(trim($$), $input) Sure, like I said in my previous message, ($$) acts as a shorthand for Clo= sure::fromCallable on any callable that takes one argument=2E But syntax fo= r getting a reference to a function has been discussed before, and it would= be a shame to be able to do it for this special case but not others=2E Straw manning, if name::fn got a reference to a function from its name, yo= u could do: $foo |> trim::fn Which makes more sense than using a partial application operator without a= pplying anything=2E Regards, --=20 Rowan Collins [IMSoP]