Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79235 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17981 invoked from network); 27 Nov 2014 15:50:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Nov 2014 15:50:00 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.170 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.212.170 mail-wi0-f170.google.com Received: from [209.85.212.170] ([209.85.212.170:44903] helo=mail-wi0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5C/64-27910-72847745 for ; Thu, 27 Nov 2014 10:50:00 -0500 Received: by mail-wi0-f170.google.com with SMTP id bs8so18691941wib.3 for ; Thu, 27 Nov 2014 07:49:57 -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=2b9q8I0EKa1+cEmpCtWm6n2q62GFHjVeVeZfLSqWQvE=; b=MdgWGlMWWdToSS3zF9OfCLjPWw/X2sOCXluDBfAJe6PIz9n8t5p5GvwHlX+JXHYLmd dDUXJx2qlBX0f01bt1jmWxFj9x5oJypYyLcRIKWKUKLgClSy/oD4X8wE2SMEBeSlKF8/ oeLgEyT8+2PyZBDpslV5hEy0ebIUf38hzjl2aeUdwIMGtw2KjFeW554yVcehx2AaYzVB iJpsM1rKVvfecf0gjxK7h8XEkDKXBBlE824GU7FcLHxgX7l1j323Cn2ZSNA6rvWx0/xZ qmcWaFXfPMS0F3dLJcsDyUcFTCx5FkyU7U4ilRSLtVJ0T+mxhB2qyWO05Y5V3aXSrJXm GOgg== X-Received: by 10.194.24.103 with SMTP id t7mr40353665wjf.15.1417103397107; Thu, 27 Nov 2014 07:49:57 -0800 (PST) Received: from [192.168.0.148] ([62.189.198.114]) by mx.google.com with ESMTPSA id wz5sm11239006wjc.29.2014.11.27.07.49.55 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Nov 2014 07:49:56 -0800 (PST) Message-ID: <547747F1.4000501@gmail.com> Date: Thu, 27 Nov 2014 15:49:05 +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 References: <547723A8.8090008@gmail.com> <54773DD8.7030907@gmail.com> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Abstract final classes From: rowan.collins@gmail.com (Rowan Collins) guilhermeblanco@gmail.com wrote on 27/11/2014 15:34: > > This is true of classes intended to be static whether or not they > are final. Allowing a "static class" would allow you to > > enforce that all methods (and properties) must be static without > banning users from extending it (which is a completely > > orthogonal decision). > > So if I still want to not allow anyone to extend it, I would then have > a final static class. Remember, I don't want people to change methods' > visibility. Yep, that's the idea. I see no reason, particularly with Late Static Binding, that it shouldn't be possible to have a static class which can be extended by a static sub-class, if that fits a particular use case.