News for hackers. Stuff that matters.
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
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.
Re:These are things in PHP which make me sad by lox on Friday May 27, 2011 @02:07PM (#2592448)
Yup, wouldn't a final class with a private constructor be more appropriate there?
Re:These are things in PHP which make me sad by pornel on Friday May 27, 2011 @02:21PM (#2592499)
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.