3 ms·
What is with this bazaar conviction that classes are bad?
by rubicon33 7y ago
What is with this bazaar conviction that classes are bad?
- filoeleven 7y agoI caught the Clojure strain of the functional bug. OOP is the devil, and mutable state is his pitchfork. “this” was a mistake. The more I can compose with pure functions that operate on immutable data, the happier I am.
- e12e 7y agoObjects and messages good, classes and inheritance mostly bad. Except maybe for modelling/simulating concrete classes of objects (ie, as in Simula, the language). Proper multiple dispatch (a la common lisp CLOS) seems rare - I'm guessing java/c++ seemed like a sane trade-off for some type safety - but they probably should've stuck to self/smalltalk (for Java) or looked to standard ml/common lisp (c++). I still don't understand why Javascript got classes, rather than some paint on the prototype system.