Re:These are things in PHP which make me sad
by mrspandex on Friday May 27, 2011 @01:00PM
(#2592127)
"#41 Cannot create a final abstract class" is borderline too
[ Parent
| on HN ]
Re:These are things in PHP which make me sad
by glenjamin on Friday May 27, 2011 @07:29PM
(#2593441)
I like to think that declaring a class as "final" is simply a lack of imagination.
Yup, wouldn't a final class with a private constructor be more appropriate there?
Indeed. In 5.3 you could have regular functions in a namespace, so there's no need to abuse class for that any more.
Other than that it smells like a variation of the singleton antipattern.