Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79027 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40495 invoked from network); 20 Nov 2014 09:37:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Nov 2014 09:37:03 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.177 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.212.177 mail-wi0-f177.google.com Received: from [209.85.212.177] ([209.85.212.177:44259] helo=mail-wi0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 15/64-14967-E36BD645 for ; Thu, 20 Nov 2014 04:37:02 -0500 Received: by mail-wi0-f177.google.com with SMTP id l15so4671294wiw.4 for ; Thu, 20 Nov 2014 01:37:00 -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:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=mpmPqLpr4nmDpFnV+/BhqaUaY9fw0FmypHXfSidAulE=; b=TXtW5soEjKqKQW8tXkIUTTQCaCM8eJqi/0FBBm/5/wGuJWywVNUualP+/ZB88EVlXo t+9ICl5CTvOYmJBrpL2kktKt0g9BFVmxD7yhCe65vjMM19mh9WFiiMV2qYm3Kw3hdB9A GVgEbD/LTG3h4bxemLVQ65xCjSP/UzqFzzY02S4iHWewECNfFyEYDwjG/rMiORUKh/h0 kiGvakYHuQ0RvXd+T7QfkmSBKfGMeo4lv6MdnXgpMoJFpq9VMRAOChW6JDoQN+O4lnMp gTnalgO6KYr/SBwjSlgmARXQo/Rj2uxrIW+TIKOQwxBKKySuiUCp72Od1TP5fTMunHl/ GhYQ== X-Received: by 10.180.19.164 with SMTP id g4mr21439597wie.51.1416476220154; Thu, 20 Nov 2014 01:37:00 -0800 (PST) Received: from [192.168.0.148] ([62.189.198.114]) by mx.google.com with ESMTPSA id da3sm2557086wjb.12.2014.11.20.01.36.59 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Nov 2014 01:36:59 -0800 (PST) Message-ID: <546DB62F.7060200@gmail.com> Date: Thu, 20 Nov 2014 09:36:47 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: PHP Internals List References: <546B0F62.1090705@gmail.com> <546B95F2.2050504@gmail.com> <546BBF4F.8040806@gmail.com> <919EDD0D-F0F4-430A-A84B-96A32DF45E7B@ajf.me> <546BCE21.7080403@gmail.com> <546BD0E8.6020609@gmail.com> <546BD206.9040800@gmail.com> <546BD451.4070909@gmail.com> <546BDEAE.2010102@gmail.com> <546BF769.9090408@gmail.com> <6120240B-1493-4805-90FF-C0EE38795B89@gmail.com> <546D3968.8040702@gmail.com> In-Reply-To: <546D3968.8040702@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Default constructors From: rowan.collins@gmail.com (Rowan Collins) Stanislav Malyshev wrote on 20/11/2014 00:44: >> This reminds me of the recent discussion over multiple defaults in a >> >switch. Perhaps as with that we should phrase the question as "is >> >there any useful purpose to having the language standardised with >> >this feature, and conversely is there any realistic harm in altering >> >it?" > You make it sound as if I'm somehow calling for some change in > "standardizing" this feature. On the contrary, I am just preserving the > status quo, it is as "standard" or "non-standard" as it has ever been. Well, as others have pointed out, HHVM behaves differently in this case, so I guess what I'm getting at is: is this considered a feature *of the language*, or just a known oddity of the *implementation*? If it's part of the language, it should be standardised in the language spec, so that other implementations can emulate it (or decide to deviate from it); if not, then it seems appropriate to talk of "fixing" rather than "changing" it. -- Rowan Collins [IMSoP]