News for hackers. Stuff that matters.
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.

https://en.wikipedia.org/wiki/Multiple_dispatch#Emulating_mu...

Re:Codata in action, or how to connect FP and OOP by kjeetgill on Monday August 10, 2020 @12:55PM (#24111345)
Ah, yea. I was confusing dynamic dispatch for multiple dispatch.

My bad!