4 ms·
I don't think it's useful to criticise other programming paradigms without substantiation, and it's hard to claim one paradigm is better than another without ma
by weavejester 13y ago
I don't think it's useful to criticise other programming paradigms without substantiation, and it's hard to claim one paradigm is better than another without making some pretty large assumptions.
That said, if you subscribe to the assumption that good software design is about separating a system into discrete elements of functionality, then the functional model is generally preferable over the OO model. In OO languages, unrelated concepts such as polymorphism, encapsulation, namespacing, inheritance and (often) mutable state are combined together to produce classes and objects. In functional languages, these concepts are generally kept separate.