Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93122 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62231 invoked from network); 9 May 2016 06:27:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 May 2016 06:27:33 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.215.54 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.215.54 mail-lf0-f54.google.com Received: from [209.85.215.54] ([209.85.215.54:34273] helo=mail-lf0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6B/50-60415-3DD20375 for ; Mon, 09 May 2016 02:27:32 -0400 Received: by mail-lf0-f54.google.com with SMTP id m64so188646782lfd.1 for ; Sun, 08 May 2016 23:27:31 -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; bh=8bXJ0rdJ4fI4VZb6fRNMbcA6l838RgQA5QuTI9CSVug=; b=hKIvNj2dGSQ3Ct8ALLPcW+aYXQh1ACPdURcMQpVUIYErWs4zk5nHqkbf9UtrpzmZ3f af176OZhH51X8U2dGYQhbKxEmndLeSdbWsQwsUh+Z+36yfYlCNw3cFjqw96xcqu1gJry rOjiFm2fCrPSiRxSYWeLD+70VTnavQabcyPFmHfJ//VoSENKPrcPAUDK+qZavS7V03pW HpeVg5uebyF/9E+gtbVglBUHVwOxaf5GgdsGN1H9ygnvqy/NGiNrBLJRCTV1pmgTgEsM ZGstIBQeAOYSV+Y3+FOV0sAtpLXF6vaPpk8eohzhtpjiGfelZGAtsKlVPPlt7WyWGmQN Q7Lw== 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; bh=8bXJ0rdJ4fI4VZb6fRNMbcA6l838RgQA5QuTI9CSVug=; b=Sb9c6yk1HHkXsL7p1oQKs7YsckgU8E6/2oR+LsMLIwIB19VdYbB1DdSOz7ldAVSs4+ da5BmWkgT2J+Cb4Fejq0qbgSUujH6l+bYxd1l11NFlAnTjWqX4+Viv8RGOZ36+bFAjpz cidR1fPBGT+MM0DYXoSaol6SCY0Aw0LdWtqjhBuRI6nynKkqguIbRyemE86oqiUwju/P agsEOQrCFRo18MS4GsgGzPJ4+NC7vK6+X4sk4/WUeHd46q4V9DEoNOxzQTKd0ynm3Qz7 oX5h+rTSW4Lz6nAjNmuAnIRqgqcGD0Y2zk79FbLBDpbcTJowHx7PN9c8qeI639gi0VeY 7Peg== X-Gm-Message-State: AOPr4FWgXMq420AoUnBGK3cFzGUpFjEfxjTHVqdmhtknphjGIsetk4jaKLbD+h4XQgnoyAr4YOKpXU6hw14rAA== MIME-Version: 1.0 X-Received: by 10.25.20.78 with SMTP id k75mr11892162lfi.82.1462775248598; Sun, 08 May 2016 23:27:28 -0700 (PDT) Sender: php@golemon.com Received: by 10.112.19.72 with HTTP; Sun, 8 May 2016 23:27:28 -0700 (PDT) X-Originating-IP: [107.198.91.68] In-Reply-To: References: <4fc01507-3d07-2309-a4e4-4cad7325249b@gmail.com> <39071a01-a42c-0952-b3a8-b4769c79b56b@fleshgrinder.com> <0ac3be89-6fb4-610a-ef89-0928f264f96c@fleshgrinder.com> <71379db5-b7b8-78b3-ada5-eee34e6e22d6@fleshgrinder.com> Date: Sun, 8 May 2016 23:27:28 -0700 X-Google-Sender-Auth: c507KX5k6r40DDOzBQDfkvGGPSI Message-ID: To: Stanislav Malyshev Cc: Yasuo Ohgaki , "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] Pipe Operator From: pollita@php.net (Sara Golemon) On Sun, May 8, 2016 at 10:37 PM, Stanislav Malyshev wrote: > I don't see how it helps anything. It just replaces clear variable names > with cryptic sequences of characters with no intuitive meaning and magic > semantics invented solely to save a few keystrokes. > Yep, that's exactly what "->" does. It's just pointless syntactic sugar for hiding "$obj" when calling functions which happen to take an instance as their magicly passed argument. Oh, sorry, we were talking about the function version of ->, my mistake. That's a totally different thing. > Moreover, it would > only in one sole use case where functions always return a value that is > immediately passed to the next one and is sole argument for it, > Hrmmm... Did you read the RFC? It's pretty clear that the lhs expression can be used in a lot more cases that function calls and that it needn't be the only argument. Better read it again. > Quite the opposite. It has completely unobvious syntax (what is $$? What > is the value of $$? how I see this value if I need to debug this code?) > and does not allow to do anything but making code more cryptic. > That's a great reason for voting against short ternary syntax. What the hell is "?:", anyway? -Sara