Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68430 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86286 invoked from network); 8 Aug 2013 08:34:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Aug 2013 08:34:38 -0000 Authentication-Results: pb1.pair.com header.from=leight@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=leight@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.179 as permitted sender) X-PHP-List-Original-Sender: leight@gmail.com X-Host-Fingerprint: 74.125.82.179 mail-we0-f179.google.com Received: from [74.125.82.179] ([74.125.82.179:43518] helo=mail-we0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 33/3F-06453-D1853025 for ; Thu, 08 Aug 2013 04:34:38 -0400 Received: by mail-we0-f179.google.com with SMTP id t57so2292132wes.38 for ; Thu, 08 Aug 2013 01:34:34 -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 :cc:content-type; bh=FyZHkZL9VC+FngBxghF1KzhdYk27a4tH/+wG3Rp8PE0=; b=A82PODNh6HiXfOr0mKdw9lYbJi6pUvWv8yZ8WLhqiS0rMPxe0zUUW+E8IXIiHy4dkE 0nYa+j8WmiagPDa0zFwJp7dftCNJUlPARMCyuRAkzGla9vnLZ3z/Dxo7p+gWGX6fT7/B WGI69/t6vrkxANU/6PZQGzvNgzvN/cCopM8bcjg35tc61PZdbRIFPrpf07VwSITKlwx3 MPENr56S8li1AjqXs8jW/mY/B8yG1Ab0ShAZJXBvZvuCLFfKIO9YpRXRg7QHmKl6d8Cf FCRLRCXPnONWxFHAQpPBqSqAgg1bROACiei6claxgxaJRxk8QH1R2EA2yuth8w4BiLJv XG+g== MIME-Version: 1.0 X-Received: by 10.180.79.161 with SMTP id k1mr4391312wix.36.1375950874838; Thu, 08 Aug 2013 01:34:34 -0700 (PDT) Received: by 10.216.182.193 with HTTP; Thu, 8 Aug 2013 01:34:34 -0700 (PDT) In-Reply-To: References: Date: Thu, 8 Aug 2013 09:34:34 +0100 Message-ID: To: Sean Cannella Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=f46d044402301f8f4504e36b87e8 Subject: Re: [PHP-DEV] RFC: constructor argument promotion From: leight@gmail.com (Leigh) --f46d044402301f8f4504e36b87e8 Content-Type: text/plain; charset=ISO-8859-1 On 7 August 2013 20:47, Sean Cannella wrote: > https://wiki.php.net/rfc/constructor-promotion > > What do you all think? > I'm not sure what problem this is really trying to solve, the boilerplate code you mention is very explicit and it is very clear to the reader what is being done. Each property documented with its type, purpose and visibility in a common place for easy reference (at the top of the class). Each property that takes a value from the constructor assigned in the constructor. Very clear. To me this seems to be adding unnecessary magic and extra rules to remember (the contrived case you mention at the bottom of the RFC for example would actually be incredibly common) at the expense of readability and code clarity. --f46d044402301f8f4504e36b87e8--