Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93332 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72126 invoked from network); 14 May 2016 16:35:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 May 2016 16:35:45 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.215.45 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.215.45 mail-lf0-f45.google.com Received: from [209.85.215.45] ([209.85.215.45:35961] helo=mail-lf0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DF/92-48938-0E357375 for ; Sat, 14 May 2016 12:35:44 -0400 Received: by mail-lf0-f45.google.com with SMTP id u64so101609581lff.3 for ; Sat, 14 May 2016 09:35:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=golemon-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-transfer-encoding; bh=JSsyCPpnnA5dNlo/LCjHKrOkW+uOlax8+B+aHtWyeLQ=; b=BtmtiaGwBAm1Cz+hvoV/1lxtyHzqe8k0J6ppukE7p46d4nFiv1IFcvihV36/nVXeye FXlkCfwBg3eSeSchHgai25TnOHGt+nYOLvyWDXma8Wgxzbs5YQwB0PoHHyXcuiqiplk3 jOrMBQAfax0M5SIu7ZUj/yyogopSdPR/52MahZWGy/q4Grkbfg+1psakrT/+okGqy/+p Sl3ZX4hYM7ePzWYTnQYQ/C4z656cyaCOA7L2ZD/h9ovuHbzOu7dm2jKAh2MhHJnBxKtF +wMftekRadaiX++aG3aTKR6+evrLppczIgwJyjQssM7eyFEDxb7TF/lrmRzq2WCO5bD4 dQ9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-transfer-encoding; bh=JSsyCPpnnA5dNlo/LCjHKrOkW+uOlax8+B+aHtWyeLQ=; b=ZxkQ0RR2jKfPPC5E+Ao6+4n5EZxr/6DIpxZRCXtcQMSm4UFmpiFCG/RQui9nECgaeq T2qR+yjXunU6vj04jUV7UJFY3NJcUXdT09ltFOsziwh3oBAa52i/RVtpDS8NXkcfuIQB jePwCa9VSrXsNlycAeOldOdXSljwF7WtzGnaQ9u1U5S4jaM1vU+qLW5KFNnhfowaTYCX Wm5IfgorLoVZ1W80W6J04ET5SivyYtxgBVq1+R/jKygLXAOi4MzwScdoliXwSBa+UraV ZMjYqfuUz7pMoLT+EKJBRNuM2XSZ8vZ0Da8ga1GIy9IYyMRiCEGQAe/Xgy6utcsHZ5CK 6tdw== X-Gm-Message-State: AOPr4FUkiaFkMxpCkVVvbVMs4VfPR+oaPE8Ws52ldr/FEVZAdu4XIBHQoMkX4/yqwuzM0LalPIf+I4Og97WEIQ== MIME-Version: 1.0 X-Received: by 10.25.20.78 with SMTP id k75mr7391855lfi.82.1463243741492; Sat, 14 May 2016 09:35:41 -0700 (PDT) Sender: php@golemon.com Received: by 10.112.217.104 with HTTP; Sat, 14 May 2016 09:35:41 -0700 (PDT) X-Originating-IP: [107.198.91.68] In-Reply-To: <25c7c17a-d5f5-10e2-c773-841d961a3b07@php.net> References: <452ddb93-1f47-1d0f-4f24-bedbff506b27@gmail.com> <98.61.11104.A1D41375@pb1.pair.com> <7c94ca37-e188-dd2b-a66f-bb63bf03041a@gmail.com> <1463008795.1856219.605250569.74618FC4@webmail.messagingengine.com> <92E7F8A8-0845-48A7-91B1-9554C5F66C9D@zend.com> <879feadf-c04e-c0de-826b-110b3eb4e22f@php.net> <25c7c17a-d5f5-10e2-c773-841d961a3b07@php.net> Date: Sat, 14 May 2016 09:35:41 -0700 X-Google-Sender-Auth: Uopr9jI7Br1iqxEj1qhM8WTxrJw Message-ID: To: =?UTF-8?Q?Fran=C3=A7ois_Laupretre?= Cc: Simon Welsh , Zeev Suraski , Quim Calpe , "davey@php.net" , Larry Garfield , "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] Pipe Operator From: pollita@php.net (Sara Golemon) On Sat, May 14, 2016 at 3:33 AM, Fran=C3=A7ois Laupretre = wrote: > Le 14/05/2016 =C3=A0 01:36, Simon Welsh a =C3=A9crit : \>> Sure, you could try to use the type of the value being passed in, >> but that ends up much more magic and then you run into the same >> problem with strpos, or password_verify, or a variety of other >> functions that take multiple of the same type of argument where >> order matters. > > Right. Some functions may have several potential arguments to substitute.= In > this case, I propose we choose a position to use when the function is use= d > in a pipe and, then, create function aliases with different positions. > This doesn't strike you as massively over-engineered (and magic) compared to letting the caller explicitly specify position? Moreover, it only "solves" the argument ordering problem by replacing it with a function alias selection problem. -Sara