Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79213 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64791 invoked from network); 27 Nov 2014 07:19:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Nov 2014 07:19:12 -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.220.54 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.220.54 mail-pa0-f54.google.com Received: from [209.85.220.54] ([209.85.220.54:34019] helo=mail-pa0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 90/D2-40216-E60D6745 for ; Thu, 27 Nov 2014 02:19:10 -0500 Received: by mail-pa0-f54.google.com with SMTP id fb1so4494010pad.13 for ; Wed, 26 Nov 2014 23:19:07 -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=V++6BcWdySKm5ynLvpWOChbFgbRYcvHtr43xQKROlpA=; b=fbOS+lMcSuHc4CxbxKKAuNAU5rRnxycaHaUG+2Pi/m5LH8u78+xkaSJyjQKt5vDKDv bt11xXRATMTYnRuiUociinEiz52gKTqbao/hrwfwWbht2M1+Aus1fEkSyfjzvn6Kr52/ o9Sey0v2c5nXR3W7NAGwAsZcsEzVk8hrX8HJBbDA++Z3xj+66Un1MNLKDfUECMaNCpR3 2q9anl2mD1nKsYOTeuEgdOqwRFbz+onXjrQQ2vW97SzL6blIJAlMyxUcAu68heRYXKk/ 2lOldObxpN1WkAeUV1DmQB7tUS6zf1yIsxT0y6+91oOR9xYIqMRlVjCwQk5mqFhg73Q1 eMXQ== X-Received: by 10.70.21.168 with SMTP id w8mr60608517pde.95.1417072746959; Wed, 26 Nov 2014 23:19:06 -0800 (PST) Received: from stas-air.attlocal.net (108-66-6-48.lightspeed.sntcca.sbcglobal.net. [108.66.6.48]) by mx.google.com with ESMTPSA id o12sm6194103pdj.36.2014.11.26.23.19.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Nov 2014 23:19:06 -0800 (PST) Message-ID: <5476D068.8080101@gmail.com> Date: Wed, 26 Nov 2014 23:19:04 -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: "guilhermeblanco@gmail.com" , PHP internals References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Abstract final classes From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > I worked on an implementation of a somehow controversial concept that > exists in hack and C#: abstract final classes. > > https://wiki.php.net/rfc/abstract_final_class In the RFC, I think one phrase needs clarification: Currently, PHP developers' only resource is to create a final class with a private constructor, leading to untestable and error prone code. What is "error prone" in private __construct(); and how the RFC improves the testability of such class? The vote should be 2/3+1 surely as it is a language change. > My motivation is to further expand class support to add modifiers (PPP - > public, protected, private). I added this change to initially segregate > grammar rules. It was an easy feature without extensive complexity and > covers some use-cases. I'm not sure I understand this part. Could you explain more? -- Stas Malyshev smalyshev@gmail.com