3 ms·
"Scala has pioneered the fusion of object-oriented and functional programming in a typed setting." What about Ocaml (1996, well before scala) and F# (2005, not
by sriku 9y ago
"Scala has pioneered the fusion of object-oriented and functional programming in a typed setting."
What about Ocaml (1996, well before scala) and F# (2005, not too long after scala)?
- lmm 9y agoOCaml users tend to avoid its object system, so while it attempted to fuse object-oriented and functional I don't think we can say it succeeded. F# is, as you say, later.
- yawaramin 9y agoOCamlers tend to avoid OOP mostly because we can get away with modules, functors, polymorphic variants to model subtyping, and now also GADTs and open variant types to precisely model and add cases. When we do need to use it, it is actually pretty elegant and well-designed. It's just that since we've tasted the power of the more functional abstraction techniques, OOP loses its allure.
- lomnakkus 9y agoIndeed. I think that what OCaml proved is that the "O" isn't actually necessary. :)