A class with a private constructor can still be instantiated. A class that
cannot be instantiated is pretty much useless. A static class would be just
a collection of functions. And I know that many developers write such
classes but it doesn't mean the language should encourage it. After all, if
someone wants to create such a "collection of functions" they can already
do that and they don't need a static class.

By definition a class is a template for creation of objects. Everything in
PHP OOP is designed with this in mind.  Adding static classes would be a
severe complication in the language syntax that goes against the OOP
principles. That's like saying that some people use a saw to hammer in
nails and we should designs saws that make it easier.

There are so many unanswered questions in this proposals without even
considering things that might be implemented in the future. Such an
addition would be a major change that could have unforseen results.

And by the way, you are not going to win anyone's approval by being rude
and condescending.

Reply via email to