Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81081 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72577 invoked from network); 24 Jan 2015 16:51:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jan 2015 16:51:30 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.177 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.216.177 mail-qc0-f177.google.com Received: from [209.85.216.177] ([209.85.216.177:40263] helo=mail-qc0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3B/73-49997-F8DC3C45 for ; Sat, 24 Jan 2015 11:51:28 -0500 Received: by mail-qc0-f177.google.com with SMTP id p6so2005735qcv.8 for ; Sat, 24 Jan 2015 08:51:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=jHkwuyQHBLep1rn7NA0zzxlfKbfGkr3LtUC5bqlRo0A=; b=tah4cnjaryG7t4wqFRwkCVsL2EeHuU24t5eWBQwUteqycwfi/TUydYLwN+sq5pwZEh sb+kXjO1UVBjiKgnAm3c5/HPCt5jhyENrciZz4BjujEnr+vMmuD8xzdp8S3RYUme+UY0 f8cAM3kN8sYm64bw6frbs0ruRCuzbPP2qeBQwRahYi/G8nYs7w7q7YdZiDfvNOVOzb0G 4gBCwMzin+APFUcGW7lkpxrwB2PRwUO3CRExmgFstt4p0CEHWibpcZ5qa/i40/AsyKY0 HneIicXlKXc2uH81PByStsStMpqaQJO+HvuF4KXHxBQ2DnHOqW1EgarJBMl5fd2nzEkS GbXA== X-Received: by 10.140.21.229 with SMTP id 92mr24702785qgl.33.1422118284801; Sat, 24 Jan 2015 08:51:24 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.229.93.70 with HTTP; Sat, 24 Jan 2015 08:50:43 -0800 (PST) In-Reply-To: <54B1C50F.7020304@gmail.com> References: <54B1C50F.7020304@gmail.com> Date: Sun, 25 Jan 2015 01:50:43 +0900 X-Google-Sender-Auth: 5w8ryUSrC3X6c66uLNSNbmLWRcU Message-ID: To: Stanislav Malyshev Cc: PHP Internals Content-Type: multipart/alternative; boundary=001a11c12f8c31bd08050d68b70a Subject: Re: [PHP-DEV] [RFC][VOTE] Default parent constructors RFC From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a11c12f8c31bd08050d68b70a Content-Type: text/plain; charset=UTF-8 Hi all, On Sun, Jan 11, 2015 at 9:34 AM, Stanislav Malyshev wrote: > I'd like to initiate a vote on this RFC: > https://wiki.php.net/rfc/default_ctor > > TLDR: this RFC would make a call to parent::__construct() succeed (as in > "not produce a fatal error") even if the parent class does not define a > ctor. Same for __destruct and __clone. The motivation for it is in the > RFC and here: > https://php100.wordpress.com/2014/11/04/default-constructors/ > > I've chosen the simplest way of implementing it, as suggested by Dmitry, > in https://github.com/php/php-src/pull/990. There are other > alternatives, but I think the simpler the better. > > Previous discussion is at: http://marc.info/?t=141630266000001&r=2&w=2 > It seems -1 vote are increasing. Therefore, I would like to mention benefits of this RFC again. This RFC is great for rapid app development/prototyping. There are many cases that base class constructors calls are needed or not. This RFC allow us to just call parent constructor, then add implementation later if it is needed. It makes code maintenance easier for production code also. I can understand the reason why people vote -1 (non existent method/function calls should not be able to be called and raise), but benefits override. IMHO. PHP is for easier/faster development, isn't it? Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a11c12f8c31bd08050d68b70a--