Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93360 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36430 invoked from network); 16 May 2016 17:53:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 May 2016 17:53:47 -0000 Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.223.171 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.223.171 mail-io0-f171.google.com Received: from [209.85.223.171] ([209.85.223.171:35818] helo=mail-io0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C4/00-35937-A290A375 for ; Mon, 16 May 2016 13:53:47 -0400 Received: by mail-io0-f171.google.com with SMTP id d62so219372766iof.2 for ; Mon, 16 May 2016 10:53:46 -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=Zvr1Is/nli4RPFYnmH1hfszk/lIDjQJckaYePGRK/cs=; b=iAHIOH3evRml63bSVlYbEz1GRc9Qvrd26DOI/32gNmlruoAmQMH9bhoB2/w8raJ0Xl v6nhZ0MQqttgQtlK7fYHFWB+rpduf9VzQb2xH3x4lLAL9h+uSPwlCuRjviterrJbCkpz 8jFqnbQ8MJ70SP8SfHwPdUDe42xdrGnRMA3/BF7upS40siR3HlY+77y8psv6Kn9r/MYf Ea3iROojWpGh4I9MacrLojQJrC6io9H2BJFxEqJvUFY7Q9mxF68ffJ6JBcM5mK9DHytz Z0c5YttnbVbButZ7oKEf0cr4anZqd0yXSDjfj1y1rnmSmyWbNoWfcXft6AvAFOVzqMiF aG0g== 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=Zvr1Is/nli4RPFYnmH1hfszk/lIDjQJckaYePGRK/cs=; b=AKGrh2m6U6FDx6kA697HOYAVyiDHkeW0YHDV/YFDx6kTy74UBmFIfPrG+90P1aEfpL 2xcYKGL2B84CcHTRjO8SmdGE9VEd1gjaZWuYGdp2b7h9oBJPQRFcHpF62bnd33SswKqC L8RE1DCmgJcEiJuP8hYz5u51ZwpsbLtRD7pGTZCPHqUfCV9a0odMqNwluGYrA73l21HG EJBzVhNE645CG2c6SEzJZup9MlC94qJOJTdt30y2va21yKwU5xZ+NCxIZ+K8xke/sqTy yoMVjiJKJNyYoAA56q05RPuU7Vt6K4SlYaxn2a2kEY2y0Ny4JZhbnUqoe9wpbxRtxy4p P1uQ== X-Gm-Message-State: AOPr4FUzLLIRPr5d3RvxxnlkAWpvWEfT0Oq+dfhwb7Ch5PJMg76ofBpl3Q/dYAobm9e0lNHcZKnON3bs2WEojw== MIME-Version: 1.0 X-Received: by 10.107.41.84 with SMTP id p81mr6541761iop.106.1463421223809; Mon, 16 May 2016 10:53:43 -0700 (PDT) Sender: php@golemon.com Received: by 10.36.9.67 with HTTP; Mon, 16 May 2016 10:53:43 -0700 (PDT) X-Originating-IP: [107.198.91.68] In-Reply-To: <33119a72-a146-ea6a-076a-67a886ebdaea@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> <85ec320c-b8d6-1cc8-2059-7b8dfa6589e2@php.net> <5739237C.1090605@garfieldtech.com> <33119a72-a146-ea6a-076a-67a886ebdaea@php.net> Date: Mon, 16 May 2016 10:53:43 -0700 X-Google-Sender-Auth: IB9IFbLL3EYo0oblgXm0RRs5D70 Message-ID: To: =?UTF-8?Q?Fran=C3=A7ois_Laupretre?= Cc: PHP internals 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 Mon, May 16, 2016 at 2:17 AM, Fran=C3=A7ois Laupretre = wrote: > Le 16/05/2016 =C3=A0 03:33, Larry Garfield a =C3=A9crit : >> This still sounds awfully complicated to me. I would far, far prefer >> the $$ syntax to special casing function aliases just to dance around >> it. If we had a short-function syntax then requiring a piped function >> to have only a single argument would be both reasonable and >> typing-efficient. Baring that, the $$ syntax seems far nicer than >> alternate versions of functions with implicit arguments but only in >> certain situations. > > The question, here, is to determine how serious is the issue of argument > ordering in the PHP library. It seems you don't feel it as very serious, = as > you prefer a $$ placeholder. > I think you're making a false equivalence here. One can see argument ordering consistency as a serious problem without seeing a Heath Robinson version of call chaining as the solution to it. I appreciate that you want to seize onto any opportunity to fix the argument ordering consistency problem, but I don't agree that this is the fix for it. > The question of function aliases is not so serious because we'll need ver= y > few. Almost every functions have only one 'natural' argument to substitut= e > as lhs. I'm not sure I understand what you mean with 'but only in certain > situations'. > If it were so natural, wouldn't the original version of these functions have been made "right" in the first place? I fear that the only thing we'd gain by adding all these aliases is more functions, but without the benefit of any improvement in the argument ordering problem because now, instead of remembering which order the argument is in, users have to remember which alias to call. -Sara