Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92989 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30121 invoked from network); 30 Apr 2016 15:23:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Apr 2016 15:23:18 -0000 Authentication-Results: pb1.pair.com header.from=ocramius@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ocramius@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.50 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 209.85.215.50 mail-lf0-f50.google.com Received: from [209.85.215.50] ([209.85.215.50:35096] helo=mail-lf0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D2/DA-58459-5EDC4275 for ; Sat, 30 Apr 2016 11:23:18 -0400 Received: by mail-lf0-f50.google.com with SMTP id j8so15523403lfd.2 for ; Sat, 30 Apr 2016 08:23:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=KF/Z+R5DqBv6rhKSa5OOjzCnyQODpxaEGq12eBGZWsE=; b=pj5uXRj96j7RaEwXcMUXyQBlwmSEzd+/Kt2wxC7xW7rEitI5qNvABpBcgVVvE/svQw 3Ka/SuOp6OBYAc8jMp7i6XJdPhBsRsD+VzUYz4DPqeDmaUqgsBp7vTopatlBgwujDpuM lMLcgjY1tkTKS4Nya5cAPvbgLqjR+DtgByfPHMTAqfdjH6EMoPlLW5Y07Ho+q4jTvHdF UeqylPv1nuxmnHOSfDhWW2PvyBbP/yHlQkmaVSrPLaKhH3aZ7sqTj45bB4lPRDZPGUVa w+tmD7uzG7oYhgTz2dUHIpsQgc6VwrtbkRXRX4hRGkVqvNbEbj6K32MkMRmSNDhjv2Dv ORvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=KF/Z+R5DqBv6rhKSa5OOjzCnyQODpxaEGq12eBGZWsE=; b=HDYLYUIhJ3KF6zWfBxRwPZqi5ypywk/FirnE4r1RKmd2a6iZHnZ/tp/g69DFIDt7pw aQYZF/NNifxmQ2heYOToQJ9DJYQ1tXIhFDkbrItQl1ETL7uwNdhLUepr2UXNqVS+HyRY Bf5AL8xE4lq1ROQX6BAOdCJ5zJvnB99BMOVL4yt6N8bDesmjOAHBWZ17beHvTsfARjW8 i2mMpCA/SGO71TmrnT9BrpSQEHKxxpROEViAOudHBaj0fYjW8EJu9ZBEWpgZ+yRZrIBP yPXUANSx3yJ2tpkpMXcj+tZB5IN0PgBXKMg56aNzud+3njbY7TI4Rd6XSkfAZRD2tMx0 pCjA== X-Gm-Message-State: AOPr4FWWeIBfkFph20rbeqtqmc8oPqsZ7zvO23VmE9fqCsqBLyuDWLXuya6qzGJ21kMQOvwmgkCt+foAYpEx+A== MIME-Version: 1.0 X-Received: by 10.112.201.105 with SMTP id jz9mr11086686lbc.6.1462029794881; Sat, 30 Apr 2016 08:23:14 -0700 (PDT) Received: by 10.112.126.67 with HTTP; Sat, 30 Apr 2016 08:23:14 -0700 (PDT) Received: by 10.112.126.67 with HTTP; Sat, 30 Apr 2016 08:23:14 -0700 (PDT) In-Reply-To: <5724C9A7.5080504@fleshgrinder.com> References: <8ea990da-1fe7-256c-4e08-0b30715c8e8a@gmail.com> <5724C9A7.5080504@fleshgrinder.com> Date: Sat, 30 Apr 2016 17:23:14 +0200 Message-ID: To: PHP Internals List Content-Type: multipart/alternative; boundary=001a11c372dc933d950531b55698 Subject: Re: [PHP-DEV] [RFC] Pipe Operator From: ocramius@gmail.com (Marco Pivetta) --001a11c372dc933d950531b55698 Content-Type: text/plain; charset=UTF-8 This feature has nothing to do with fluent interfaces, nor has their flaws. The readability of piped processing for functional code is simply a no-brainer here, and doesn't require any API changes in function signatures either: it is not "a different way of doing the same thing". On Apr 30, 2016 17:05, "Fleshgrinder" wrote: > On 4/30/2016 8:49 AM, Marco Pivetta wrote: > > I think this is much more readable/clear than any event-driven or > > procedural approach. > > We know exactly what is going on, we will get clear stack traces (this > > could need some fine-tuning of the current PR - I didn't try it out yet) > > and we will be able to introduce intermediate steps with ease. In > addition > > to all that, this will ease reactive programming by a lot, as piping is a > > natural fit for streams and all abstractions around streams. > > > > The syntax is also already effective in F# (you can write very expressive > > and easy to understand code with it) and now also landed in Hack. > > > > I'd say +10 to this proposal :D > > > > I am with Stanislav on this one or rather meh. It also goes against what > you usually advocate: there should be only one way to achieve things (I > remember your /fluent interface/ example very well). Unless you changed > your mind regarding that. Hence, it is nice syntactic sugar but it does > not allow us to solve problems that we cannot solve already. > > -- > Richard "Fleshgrinder" Fussenegger > > --001a11c372dc933d950531b55698--