Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79352 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45890 invoked from network); 1 Dec 2014 19:44:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Dec 2014 19:44:43 -0000 Authentication-Results: pb1.pair.com header.from=lars@strojny.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=lars@strojny.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain strojny.net from 46.4.40.248 cause and error) X-PHP-List-Original-Sender: lars@strojny.net X-Host-Fingerprint: 46.4.40.248 milch.schokokeks.org Received: from [46.4.40.248] ([46.4.40.248:34798] helo=milch.schokokeks.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D4/42-32869-925CC745 for ; Mon, 01 Dec 2014 14:44:42 -0500 Received: from [192.168.2.80] (p50931bfd.dip0.t-ipconnect.de [::ffff:80.147.27.253]) (AUTH: PLAIN lars@schokokeks.org, SSL: TLSv1/SSLv3,256bits,ECDHE-RSA-AES256-SHA) by milch.schokokeks.org with ESMTPSA; Mon, 01 Dec 2014 20:44:37 +0100 id 0000000000000028.00000000547CC525.000007BE Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) In-Reply-To: <003c01d00d6e$f4fd77c0$def86740$@tutteli.ch> Date: Mon, 1 Dec 2014 20:44:35 +0100 Cc: internals , guilhermeblanco@gmail.com Content-Transfer-Encoding: quoted-printable Message-ID: References: <003c01d00d6e$f4fd77c0$def86740$@tutteli.ch> To: Robert Stoll X-Mailer: Apple Mail (2.1993) Subject: Re: [PHP-DEV] [RFC] Static classes (Was Abstract final classes) From: lars@strojny.net (Lars Strojny) Hi Guilherme, hi Robert. > On 01 Dec 2014, at 14:58, Robert Stoll wrote: >=20 > I am not sure what makes more sense for PHP, but just as = thought-provoking impulse, wouldn't it be better just to check that all = methods are static and __construct private instead of turning methods = magically into static methods and __construct private? I very much like the RFC in its current state except for the implicit = static. While we can preserve the behaviour of automatically turning = methods into static methods, this should indeed trigger a warning. cu, Lars=