Re: [RFC] Abstract final classes

From: Date: Thu, 27 Nov 2014 20:38:14 +0000
Subject: Re: [RFC] Abstract final classes
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-79252@lists.php.net to get a copy of this message
Ok... so if I update the RFC to be "static class", does that make everybody happy? I mainly wanna get this forward thinking trend... =) On Thu, Nov 27, 2014 at 10:49 AM, Rowan Collins <rowan.collins@gmail.com> wrote: > 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. > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Guilherme Blanco MSN: guilhermeblanco@hotmail.com GTalk: guilhermeblanco Toronto - ON/Canada

« previous php.internals (#79252) next »