Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78950 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10250 invoked from network); 18 Nov 2014 19:00:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Nov 2014 19:00:19 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.180 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.192.180 mail-pd0-f180.google.com Received: from [209.85.192.180] ([209.85.192.180:39590] helo=mail-pd0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 72/80-06737-F379B645 for ; Tue, 18 Nov 2014 14:00:16 -0500 Received: by mail-pd0-f180.google.com with SMTP id p10so4561537pdj.11 for ; Tue, 18 Nov 2014 11:00:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=7tAoLIKX1ks6Wv/4qn9yC6axTjHxsyv5bC8NC6vd258=; b=mwQUgGq9Qjh1lY9FXJv8e2FDceef5Rd3OGqhJyV2yC3ZJC0Xj5VmNMICBZjdbLD2GC vYJ8PQG1v2Duc4ysPVsD6V7peG8ITtNdVJm0neN6Q3y0kXsPKN5o7jfbVqTv8gLmiYVL gaXUjPKMVPYTXGVP8DAGZHfKrIxHRHyOeAaX8ae6z+kvLeSyK/2Agv0ou3mRP2CGZezG it2baC34Px2w//of4bAnXP6We8sbxjh38FWwvb6cqV/HKd9yxHEJmx/whuBoTSUjilop nHp1ii/mc9QctjmkkFCB++e7mw6ggelXmAi4upmC+zJPKV5AUBKbU6/Rr3wsIpt6F+U3 1oFQ== X-Received: by 10.70.54.38 with SMTP id g6mr38840126pdp.107.1416337211781; Tue, 18 Nov 2014 11:00:11 -0800 (PST) Received: from [192.168.2.145] (108-66-6-48.lightspeed.sntcca.sbcglobal.net. [108.66.6.48]) by mx.google.com with ESMTPSA id fl15sm38628264pdb.92.2014.11.18.11.00.10 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Nov 2014 11:00:11 -0800 (PST) Message-ID: <546B9739.6060904@gmail.com> Date: Tue, 18 Nov 2014 11:00:09 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Ferenc Kovacs CC: PHP Internals References: <546B0F62.1090705@gmail.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Default constructors From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > Thanks for bringing this up and working on the patch. > Last time we discussed > this(http://www.serverphorums.com/read.php?7,712222,712635), there were > a couple of people including Anthony and Sanford who were agains this > feature arguing that it would encourage bad practices so I think it Obviously, I disagree with that. I do not see any bad practices it encourages - if anything, it encourages the good practice of always calling parent ctor, practice considered so good by many that some languages make it mandatory. The discussion of __call etc. presented there does not seem too relevant for me - __call was never called on missing ctor and it makes zero sense to do so since no sane implementation uses __call do dispatch constructors. I'll need to check though if my changes don't have BC impact on __call (they should not, but I did not check before, so I'll check that too). Thanks, Stas