> Also, it's faster as multiple dispatch allows to call the function directly, > instead of determining which code to execute via if/else.
It is only faster to use a type (and dispatch), if the type can be inferred at compile time.
> Also, it's faster as multiple dispatch allows to call the function directly, > instead of determining which code to execute via if/else.
It is only faster to use a type (and dispatch), if the type can be inferred at compile time.