Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94477 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95621 invoked from network); 11 Jul 2016 19:56:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jul 2016 19:56:50 -0000 Authentication-Results: pb1.pair.com smtp.mail=ocramius@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ocramius@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.53 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 74.125.82.53 mail-wm0-f53.google.com Received: from [74.125.82.53] ([74.125.82.53:37974] helo=mail-wm0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 33/02-17655-10AF3875 for ; Mon, 11 Jul 2016 15:56:50 -0400 Received: by mail-wm0-f53.google.com with SMTP id o80so66358788wme.1 for ; Mon, 11 Jul 2016 12:56:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Nlpi3oOWxbGVkObg5u01G+CeMJCn+MHf7nHTi3Og8Z4=; b=NkELV9jAA85FqOwMaVWNbGenX5EBV/8zNQC0Rsg60m9XO0eiE/+I0nfN4XfGTLFuJh ktZ6gYK9ApL1kfv3qwFeO1L2BrvpVUJ9akqb2jzuNZsNOKbTJ8XvNIBenBB7dGrBnZVb nmyhOCDYUndwsrH0yoK8lCgXZFpAwKhjXiKWnPJry7owwiMD8ZCopXvZLzhawoEUuJ1V k658a/YDiAmoYDKS01HArexDgTXXGui7iWx4awhiGw4wbqkTj0i0IDC9Vb4rY7ZlEM0z DWMim2zW/s4DDv2LHhqMhBkKYatjAQqqr1z5kMdMayRxfbIHHfnKm82Pzk1/5H7z+oWF s92Q== 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:from:date :message-id:subject:to:cc; bh=Nlpi3oOWxbGVkObg5u01G+CeMJCn+MHf7nHTi3Og8Z4=; b=EY0KWU5RpBfJxlILr1JwkbBm7ryXQGzdf5xLJwHf8Ldwqkpo4keA3XffLvOHWLjesc VbX72JXGS3qP8d467q9OBV01vALXv1nKG/06Phrq0nOIZGkrW8zZiILSvRcN1grYmyb3 kafMV1JeMbqWlYb1xlZ8t3BVwLHp/rdCOs72+Ace9d/MZUP+5EfEan3d/Qlb1CHKQ+8/ WXsjLoRDtUiwEZcdgfCQhqnwcrcI1T0T61/PWKkdtv11jQRYHVbupm+8B2/AshlCRcmt QDPDWzzgcxvp2kVi6FZ8EaLCJOlkRI2SG2XETw+10tokImbsZAk/Moof1sH5I6kO9K0+ bhDg== X-Gm-Message-State: ALyK8tKM3Jc1bMErqcPIOnVpk2EHprCZ+DWyNJ5v/IRhjdut4Wsb3ypMUrO8O1fqWkfiDBmFo4A+dQNmiRvueQ== X-Received: by 10.194.100.134 with SMTP id ey6mr1297900wjb.177.1468267007025; Mon, 11 Jul 2016 12:56:47 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.37.202 with HTTP; Mon, 11 Jul 2016 12:56:27 -0700 (PDT) In-Reply-To: References: Date: Mon, 11 Jul 2016 21:56:27 +0200 Message-ID: To: Jesse Schalken Cc: Rasmus Schultz , Daniel Ciochiu , PHP internals Content-Type: multipart/alternative; boundary=e89a8fb1f43e63aa4d0537618d90 Subject: Re: [PHP-DEV] Proposal for php7 class method return From: ocramius@gmail.com (Marco Pivetta) --e89a8fb1f43e63aa4d0537618d90 Content-Type: text/plain; charset=UTF-8 On 11 July 2016 at 21:51, Jesse Schalken wrote: > > does save the verbosity of repeating a variable name, and often saves a > variable altogether: > > $blah = new Blah(); > $blah->setFoo(1); > $blah->setBaz(2); > $this->setBlah($blah); > > > becomes > > $this->setBlah((new Blah()) > ->setFoo(1) > ->setBaz(2) > ); > > Right: to save one variable assignment you now have 3 function calls. I think I see your problem (if this is about performance) :-P Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ --e89a8fb1f43e63aa4d0537618d90--