Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100717 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 56759 invoked from network); 20 Sep 2017 16:52:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Sep 2017 16:52:42 -0000 Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.113.146.227 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.113.146.227 xdebug.org Received: from [82.113.146.227] ([82.113.146.227:37996] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 43/E7-62331-9DC92C95 for ; Wed, 20 Sep 2017 12:52:42 -0400 Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id CE58010C78A; Wed, 20 Sep 2017 17:52:38 +0100 (BST) Date: Wed, 20 Sep 2017 17:52:38 +0100 (BST) X-X-Sender: derick@singlemalt.home.derickrethans.nl To: Nikita Popov cc: Sara Golemon , PHP internals In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Subject: Re: [PHP-DEV] [RFC] Pre-draft for PipeOp v2 From: derick@php.net (Derick Rethans) On Wed, 20 Sep 2017, Nikita Popov wrote: > On Wed, Sep 20, 2017 at 6:32 AM, Sara Golemon wrote: > > > I was planning to update the RFC, but wiki.php.net is having issues > > atm and isn't coming back up with basic coaxing, so I'll just start > > discussion informally, and the RFC can be updates later. > > Non-Goal: I didn't include support for base function names (e.g. > > `"hello" |> strtoupper`) because of the conflict with constants. > > Using a constant to store your function name is totes legit and > > consistent with language syntax. > > > > Future Scope: Short Lambdas `$x => $x + 1` and Partial Functions > > `someFunc('fixed val1', ..., 'fixed val2')` would help make this > > functionality more useful and are worth discussing as a sub-thread, > > but are not required to be implemented at the same time. > > > > I think this feature makes very little sense if it's not introduced > together with a way of making partial application much more ergonomic than > it is now. What do you mean here by "partial application"? cheers, Derick