Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93352 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96715 invoked from network); 16 May 2016 09:18:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 May 2016 09:18:10 -0000 Authentication-Results: pb1.pair.com smtp.mail=francois@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=francois@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 212.27.42.2 as permitted sender) X-PHP-List-Original-Sender: francois@php.net X-Host-Fingerprint: 212.27.42.2 smtp2-g21.free.fr Received: from [212.27.42.2] ([212.27.42.2:39821] helo=smtp2-g21.free.fr) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DA/83-65275-D4099375 for ; Mon, 16 May 2016 05:18:07 -0400 Received: from [127.0.0.1] (unknown [82.240.16.115]) (Authenticated sender: flaupretre@free.fr) by smtp2-g21.free.fr (Postfix) with ESMTPSA id 000712003AC for ; Mon, 16 May 2016 09:08:28 +0200 (CEST) To: internals@lists.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> Message-ID: <33119a72-a146-ea6a-076a-67a886ebdaea@php.net> Date: Mon, 16 May 2016 11:17:57 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: <5739237C.1090605@garfieldtech.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Antivirus: avast! (VPS 160515-2, 15/05/2016), Outbound message X-Antivirus-Status: Clean Subject: Re: [PHP-DEV] [RFC] Pipe Operator From: francois@php.net (=?UTF-8?Q?Fran=c3=a7ois_Laupretre?=) Le 16/05/2016 à 03:33, Larry Garfield a écrit : > > 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. If you refer to the ML history, you will see that a lot of people, if not most, consider it as the most serious PHP sadness overall. So, what I'm exploring here is the lowest price to pay to get rid of this issue. The question of function aliases is not so serious because we'll need very few. Almost every functions have only one 'natural' argument to substitute as lhs. I'm not sure I understand what you mean with 'but only in certain situations'. François