Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79338 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12503 invoked from network); 1 Dec 2014 13:59:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Dec 2014 13:59:06 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@tutteli.ch; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=php@tutteli.ch; sender-id=pass Received-SPF: pass (pb1.pair.com: domain tutteli.ch designates 80.74.154.78 as permitted sender) X-PHP-List-Original-Sender: php@tutteli.ch X-Host-Fingerprint: 80.74.154.78 ns73.kreativmedia.ch Linux 2.6 Received: from [80.74.154.78] ([80.74.154.78:32850] helo=hyperion.kreativmedia.ch) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 57/00-12174-8247C745 for ; Mon, 01 Dec 2014 08:59:05 -0500 Received: (qmail 10281 invoked from network); 1 Dec 2014 14:59:00 +0100 Received: from cm56-129-238.liwest.at (HELO RoLaptop) (86.56.129.238) by ns73.kreativmedia.ch with ESMTPSA (AES256-SHA encrypted, authenticated); 1 Dec 2014 14:59:00 +0100 To: "'internals'" Cc: Date: Mon, 1 Dec 2014 14:58:58 +0100 Message-ID: <003c01d00d6e$f4fd77c0$def86740$@tutteli.ch> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AdANbSi4xcqlp7PXRt228GnJQfJ+cg== Content-Language: de-ch Subject: [RFC] Static classes (Was Abstract final classes) From: php@tutteli.ch ("Robert Stoll") Hi Guilherme, I read your updated RFC: https://wiki.php.net/rfc/abstract_final_class IMO the RFC as such makes sense now (abstract final confusion is = eliminated. In addition to turn methods implicitly into static methods, = the __construct of a static class should be implicitly private as well. 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? And then there is one bit which I do not understand. What do you mean = with: "There's no way of adding static variables to a namespace. This would = address this issue too." How does this RFC address this problem?=20 Cheers, Robert