r/java • u/manifoldjava • Aug 01 '22
Class is not fully OOP, should it be?
http://manifold.systems/articles/class_objects_arent_oop.html
14
Upvotes
r/java • u/manifoldjava • Aug 01 '22
View all comments
Show parent comment
10
u/manifoldjava Aug 01 '22
I'll try.
The Class class is Java's meta-class. The post is basically saying, why not leverage the generic aspect of Class to OOP enable user-defined class methods (as opposed to instance methods)? The examples in the post get into the details of how that can be useful.
As I mentioned in the post I run into this occasionally, typically building meta-level stuff like code generators, pluggable things, etc.
I'm not saying this stuff _should_ be implemented. I'm saying _maybe_ it should be simply based on the number of incidents I personally bump into the subject.
_shrug_