2 ms·
> It actually is the consensus in the OOP world these days that composition is preferable to inheritance in most cases. No argument there. :) > Yet I dare to
by kibwen 9y ago
> It actually is the consensus in the OOP world these days that composition is preferable to inheritance in most cases.
No argument there. :)
> Yet I dare to argue that this broad definition is not "useless" because both Erlang and Haskell default to immutable data and pure functions, and that defines FP more than anything.
I think this illustrates what I'm trying to get at: if one's task is to further the tenets of functional programming, then going around espousing "functional programming" as a general concept is less direct than just cutting to the chase and evangelizing for immutability and/or purity directly, especially when one considers that e.g. Common Lisp is neither immutable nor pure, but will be what plenty of people's minds jump to when they think of FP.