Hacker News new | ask | show | jobs
by dragonwriter 1911 days ago
> Why are people so attached to name "class". Call it "namespace with state capabilities" if you're annoyed by "class" so much.

The central, first-class “namespace with state capabilities” in OOP is an object. A class is a namespace with state capabilities that may (or may not, because pure static classes are a thing) be an object factory, may or may not be an object or first class entity, and, probably, if the language has static types, is also a type.

And all of that is also true of objects, except the last, and objects are always first class in OOP. So, aside from static typing, classes are superfluous, unless they are just a name for objects with certain common feature.