Relative Content

Tag Archive for dispatch

Is it possible to have Ad-Hoc polymorphism with runtime dispatch?

As I did understand, and as it’s described here, ad-hoc polymorphism is limited to compile-time dispatch. That is, if we have a function that expects an argument that belongs to a typeclass, we must know the concrete type of the argument at compile time to be able to use this function.