Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93048 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21950 invoked from network); 3 May 2016 18:57:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 May 2016 18:57:38 -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.44 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.215.44 mail-lf0-f44.google.com Received: from [209.85.215.44] ([209.85.215.44:35411] helo=mail-lf0-f44.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6D/07-03860-1A4F8275 for ; Tue, 03 May 2016 14:57:38 -0400 Received: by mail-lf0-f44.google.com with SMTP id j8so33272088lfd.2 for ; Tue, 03 May 2016 11:57:37 -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:content-transfer-encoding; bh=9KvN3FDUrCUwfnTP52xlKGrZrD6gLPv8ZLYUX4SexGM=; b=c2UNEo9VUlNOr+oI1Ib/3XvhZ8RuosruhO0tPVFJPHo+iijPMOuxVxB2h/A99EKMQc WYi3aRcJe9Zdr1K1mChky2W4muoIFsdaqgwDc3cqT9XCJncP5qy7ind6I8Eh2zEmlC6P T4526KuJPHj1lm5WEdV/SjuBJD2GJNegsUY8yMfXryYARF1YTRKrWVCyiIyNAWCkwzXI eMLC+4qXWAYAOEFFHtDH3dg9G4uPMm+NnBmOLKjD/CvHJI27VbEKEgUfRxZWyNLESMZf gOAgvrPwCJ0fWLMxRd11I9b5wDhNqBrrcqFAqrU41rvaZwTzLfNGb7BKXoQwjeqDnX9V AIFQ== 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:content-transfer-encoding; bh=9KvN3FDUrCUwfnTP52xlKGrZrD6gLPv8ZLYUX4SexGM=; b=KBFcdtxGvJr3Fs34RH4I9980elhT73+y/d6PlSAIykzAHfM/PkpA0JGG8hSqchj76L ew+x4eH5W+LpzAZLf2c4eEw4iiq7D1nMbOQ9WnvmFvGOKbFdJr+h1zMMqJDfm/sugmd5 AXvxhTEjSfe7bIWT/TtJCzvfrtFmiiExoJV9/w46eKAMlFLPf4bO9wcLBhc5HNkrosQS ij/Fh7sAkZJKxirOjs1/WHmjEbhUM+3Ax6joa8PZNgrmUuno2zbfzL26M0u5F98MpH6n 0NRTpdQuCVdm5ektFpynj/y0IFghsV6vs9AUUGRd/eE9Rrx7KQP30V5WFOQ70Jsoii8m J97g== X-Gm-Message-State: AOPr4FWioXPWVLvqjZIEZ4iKTXHW6uZVvLwjrBOhpxo922LuUOr94MxkyLLY99nyxRACSzZJE0twE8qeEsL65A== MIME-Version: 1.0 X-Received: by 10.112.157.228 with SMTP id wp4mr2039112lbb.120.1462301855281; Tue, 03 May 2016 11:57:35 -0700 (PDT) Sender: php@golemon.com Received: by 10.112.19.72 with HTTP; Tue, 3 May 2016 11:57:35 -0700 (PDT) X-Originating-IP: [107.198.91.68] In-Reply-To: <0ac3be89-6fb4-610a-ef89-0928f264f96c@fleshgrinder.com> References: <4fc01507-3d07-2309-a4e4-4cad7325249b@gmail.com> <39071a01-a42c-0952-b3a8-b4769c79b56b@fleshgrinder.com> <0ac3be89-6fb4-610a-ef89-0928f264f96c@fleshgrinder.com> Date: Tue, 3 May 2016 11:57:35 -0700 X-Google-Sender-Auth: yGJNnzrD_FbJcIL3XNdVl3YfjQ0 Message-ID: To: PHP internals Cc: Terry Cullen , Stephen Coakley Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] Pipe Operator From: pollita@php.net (Sara Golemon) On Tue, May 3, 2016 at 11:52 AM, Fleshgrinder wrote: > On 5/3/2016 8:45 PM, Sara Golemon wrote: >> Pretending that poorly designed libraries exist is na=C3=AEve. >> > I really do not know what you want to tell me with that first sentence. > Ooops, missed a negation when I typed it out. "Pretending that poorly designed libraries DON'T exist is na=C3=AEve." > The solution for the problem is already baked into PHP and usable: > intermediate variables with meaningful names. Yes, this might sometimes > be overly verbose. Yes, this might tempt some people to create > meaningless variable names. All in all no argument that was brought up > so far showed that this kind of operator is really useful to solve > something that cannot be already solved. It is always just about source > code formatting and laziness to write out some variables. > As I've said already. Yes, intermediate variables do address this style of coding. Yes, this proposal is syntactic sugar. Intermediate variables also add cognitive overhead of their own in cataloging all the various intermediates used in a large function. By removing the explicit intermediate variables and replacing them with unnamed temporaries, the code becomes easier to read because there's less unnecessary assignments cluttering up the space. -Sara