Re:Codata in action, or how to connect FP and OOP
by MaxBarraclough on Monday August 10, 2020 @07:27AM
(#24108054)
> Any OOP with inheritance does multiple dispatch. Java, C++ vitual functions
This is incorrect. C++ and Java are typical examples of languages that lack multiple dispatch, but are able to emulate it using the visitor pattern, as tsimionescu already mentioned.
This is incorrect. C++ and Java are typical examples of languages that lack multiple dispatch, but are able to emulate it using the visitor pattern, as tsimionescu already mentioned.
https://en.wikipedia.org/wiki/Multiple_dispatch#Emulating_mu...