3 ms·
"Functional and OO aren't mutually exclusive." They must by definition be. I disagree vehemently with your statement. If you were correct, then there would be
by Annatar 8y ago
"Functional and OO aren't mutually exclusive."
They must by definition be. I disagree vehemently with your statement. If you were correct, then there would be absolutely no point to programming "functionally", it would be absurd. Might as well go back to programming in Java or C++, which is utterly counterproductive.
- indeyets 8y ago"functional" is a description of algorithm (or program), but not language. Languages usually have ways to program in different styles.
- Annatar 8y agoNo, functional programming is a paradigm. An algorithm is a language independent, abstract description of solving a specific task, like for instance searching or sorting.
- Jtsummers 8y agoFunctional programming and object oriented programming are (largely) orthogonal issues. It is, in fact, quite possible to combine both approaches in a language. Java and C++ are really imperative + OOP, not pure OO. The closest to pure OO are going to be languages like Smalltalk which still has some imperative concepts and some concepts from functional programming (closures and higher order functions via blocks, in particular). Scheme allows for object oriented programming, though not directly in the base language spec. You have to build out some infrastructure for it, but then it's quite effective for it.