▲ | virgilp 5 days ago | ||||||||||||||||
There are a handful of (somewhat exotic) languages that support multiple dispatch - pretty much, all those listed by you. None of the mainstream ones (C++, Java, C# etc) do. (also Common Lisp is hardly a poster child of OOP, at best you can say it's multi-paradigm like Scala) | |||||||||||||||||
▲ | olvy0 4 days ago | parent | next [-] | ||||||||||||||||
C# does support a form of multiple dispatch, through the dynamic keyword. Used it myself for writing a parser. https://shawnhargreaves.com/blog/visitor-and-multiple-dispat... | |||||||||||||||||
▲ | pjmlp 5 days ago | parent | prev | next [-] | ||||||||||||||||
I guess Julia and Clojure are exotic. Since when do OOP languages have to be single paradigm? By then point of view, people should stop complaining about C++ OOP then. | |||||||||||||||||
| |||||||||||||||||
▲ | igouy 5 days ago | parent | prev [-] | ||||||||||||||||
Multi-methods do seem like a missed opportunity: "Visitor Pattern Versus Multimethods" | |||||||||||||||||
|