Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79219 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81140 invoked from network); 27 Nov 2014 10:35:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Nov 2014 10:35:35 -0000 Authentication-Results: pb1.pair.com smtp.mail=linepogl@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=linepogl@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.173 as permitted sender) X-PHP-List-Original-Sender: linepogl@gmail.com X-Host-Fingerprint: 209.85.214.173 mail-ob0-f173.google.com Received: from [209.85.214.173] ([209.85.214.173:57416] helo=mail-ob0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2E/00-15115-57EF6745 for ; Thu, 27 Nov 2014 05:35:34 -0500 Received: by mail-ob0-f173.google.com with SMTP id uy5so3575002obc.18 for ; Thu, 27 Nov 2014 02:35:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=I2pG0p95rs99s2hemtZ2o+pOyUbyE6mPu+eM4pkPHEQ=; b=bnlyMpBwbvfnO1BBALxoTr6xA/Jt7joJbQFYksKdV8W7fr1+8mrwUQbEbgCu13ATsk iX+hNP6lN31RL7QTApsZ7vWW6eZCQ1XfkhTLwNcx+HBD+VFWGinN+p8sWziWbuKVoalS OYA0mFhH+/Sw/cm6yC4gF7QNxcGF9nrnHhVxsES4oIpndZXOlpGsS9ykNFU/IDLqWf5/ m9a8DMqRRTFhWlRV1K58JHQRHOtewOl8CiK5WX4hT+0xFRp9IB/Fpgk3qJpX/aAB0kr4 E/18vGbiWe4l6/LIEdHhqTX76PRYam3jnb1O+q8AWCl0UG0Ews6iGFMUR/40myePbi1V gQjA== X-Received: by 10.182.240.232 with SMTP id wd8mr3072405obc.17.1417084530490; Thu, 27 Nov 2014 02:35:30 -0800 (PST) MIME-Version: 1.0 Received: by 10.76.160.74 with HTTP; Thu, 27 Nov 2014 02:35:10 -0800 (PST) In-Reply-To: References: Date: Thu, 27 Nov 2014 11:35:10 +0100 Message-ID: To: "guilhermeblanco@gmail.com" Cc: PHP internals Content-Type: multipart/alternative; boundary=001a11c2b1520e84b40508d4b46e Subject: Re: [PHP-DEV] [RFC] Abstract final classes From: linepogl@gmail.com (Lazare Inepologlou) --001a11c2b1520e84b40508d4b46e Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2014-11-27 4:47 GMT+01:00 guilhermeblanco@gmail.com < guilhermeblanco@gmail.com>: > 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 > > 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. > > "Abstract final" is a strange way to name it. What you want is a "static" class: * The fact that one cannot initialise an abstract class is only a side effect. Abstract classes are meant to be used for inheritance. * Abstract static methods are not possible (one more reason why abstract is a bad name). * A "static" class does not have to be final, given the fact that PHP is one of the few languages that offer a robust Late Static Binding. Lazare INEPOLOGLOU Ing=C3=A9nieur Logiciel --001a11c2b1520e84b40508d4b46e--