Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100741 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82434 invoked from network); 21 Sep 2017 21:13:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Sep 2017 21:13:19 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.182 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.161.182 mail-yw0-f182.google.com Received: from [209.85.161.182] ([209.85.161.182:44719] helo=mail-yw0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 95/A7-62331-F6B24C95 for ; Thu, 21 Sep 2017 17:13:19 -0400 Received: by mail-yw0-f182.google.com with SMTP id r85so4957302ywg.1 for ; Thu, 21 Sep 2017 14:13:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=zYdbHDugCh9V3/9Jpq9knUuvqK3b1ozQcVJrqm94b4I=; b=MySlJtCkrxGbXubvX5kDSI0Klv411MaBM7A0hlIi/PJLjolIkhj04Keeo5w7UZcN9X BJcpipILfPYwqhv7+LNzjLi3F6tfjuxEOF8+0znsEHDu1T02iq/jXvaTuVuf/kgOVc/x sFxHnUJWH6V92DxugHbZxc4RL2p5D2DOz1vnhDajwVSS3Un4BTcLRC7Voi0SOLCXwUNO Wlp0tEyrQkF11UGDWDd3I11l6W1LNSLLAP5J0PKBYTAc1JKEQ+VYkOAw2cKiOqGyXV/e GgojbQcle3VYz+srPyFN4rCeJi+Kmy/24DfK92p9Amef8sMyDi5GddTtuW5Ua+s2e9RJ 2pvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=zYdbHDugCh9V3/9Jpq9knUuvqK3b1ozQcVJrqm94b4I=; b=rW1IA8FwrtYugWv3Xtt0suroPi1pnlAXpa1djN4IxGB3M+EgVNZjyv8bfQnXojrqRB uOqjIp/qmu0jBigeVh0hiJ88MSqvCiAC83I/WLgpLH+IpA/qdx9dknryrDTyC7PluDbR +rNrhSrrU9JM1hrtBSYV0v98HiBcXm1aLf0XcSXQuiMIt+3A0nJI1n8FBDSx0s9w3sp1 TsfGC28XOM2rUidJ/Dvc11rfD1ypHGAxrC8bI6I2j28EktGGlMX0r7orWncRPgyaecDN 3nZXPPy6Q9h8pvosVLf1Bw5PMM5w3Tn4n3K9nFPD80eswTTcbn53V7UAl5Kg07GcaQnf 2kwQ== X-Gm-Message-State: AHPjjUhYh6RgUzqNKPtfAFTM0rsrFuMOMrDoEOqJRdOPjuZaxd9ENUmo Hq5ZVBazXD4z9EIUzR1eLOJRbws= X-Google-Smtp-Source: AOwi7QCdqR79+1zWr+Y5kfC7AZzNpK5ZbPxDqzQRDH1S/wQjcyHhTVwnHQGZ0z4PLKB0L4vAdh06gw== X-Received: by 10.37.75.65 with SMTP id y62mr2391877yba.347.1506028396434; Thu, 21 Sep 2017 14:13:16 -0700 (PDT) Received: from ?IPv6:2602:306:ce9c:e680:b0be:ea83:6ef2:4d22? ([2602:306:ce9c:e680:b0be:ea83:6ef2:4d22]) by smtp.gmail.com with ESMTPSA id d184sm899490ywb.57.2017.09.21.14.13.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Sep 2017 14:13:15 -0700 (PDT) To: Sara Golemon , PHP internals References: Message-ID: <98e7fff2-72ac-0430-72bb-099a021626f6@gmail.com> Date: Thu, 21 Sep 2017 14:13:14 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Pre-draft for PipeOp v2 From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > After discussion with Levi and others who suggested a simpler > approach, I'd like to offer > https://github.com/php/php-src/compare/master...sgolemon:pipe2 as an > alternate possibility. I am still feeling it is a bit weird to do things that way, but other than that (which is just my personal issue) I do not see any problems in this proposal. With magic weird $$ thing gone, it seems to be straightforward and mostly intuitive. So while I am not feeling this is a must, I think it may be nice to have it. It'd be also nice then if we could have some syntax that allowed us to refer to functions/methods as callables - mostly for the benefit of the code readers and IDEs. I.e. you can do "hello" |> "strtoupper" and it's fine but it is not at all intuitive what you're doing sending one string into another. Same with "hello" |> [$this, 'bar']. Now, if we could do something like this: "hello" |> &{strtoupper} "hello" |> &{$this->bar} (yes I know the syntax is ugly, I hope you get the idea though to have a syntax for this) then you could have better readability, easier IDE autocompletion and other benefits. Not for this RFC, clearly, but just putting it out there so I don't forget. -- Stas Malyshev smalyshev@gmail.com