4 ms·
The good parts of OO aren't exclusive to it though. For example, Clojure provides protocols (http://clojure.org/protocols http://clojure.org/protocols) and mult
by yogthos 12y ago
The good parts of OO aren't exclusive to it though. For example, Clojure provides protocols (http://clojure.org/protocols http://clojure.org/protocols) and multimethods (http://clojure.org/multimethods http://clojure.org/multimethods) which result in far more flexible polymorphism than a language like Java.
- alkonaut 12y agoI agree many parts can be brought to FP but most importantly the languages of the future must be developed with tools in mind and in tandem with the tools. Too often new langs seem to be developed as command line compiled experiments which only (much) later get IDE support. At that point some decision may already have been made that makes tooling harder, such as not allowing or encouraging methods "on" types.