3 ms·
One common use for function overloading is when you need the function to work on classes defined across several different packages. It's used a lot in R for th
by closed 7y ago
One common use for function overloading is when you need the function to work on classes defined across several different packages.
It's used a lot in R for this reason. You might want to have a function that operates on different models, but there are 60 modeling packages it might be used on.