Maybe writing generic code is the way to solve it. I thought it was
preferred style to always specify the type of function arguments, to make
sure that the user supplies arguments that actually support the operations
defined in the function meaningfully?


On Wed, Jan 6, 2016 at 12:33 PM, James Gilbert <[email protected]> wrote:

> Do you need to specify the type of the argument "a"? Without specifying
> the type of "a", you can write generic code, and let Julia take care of
> generating methods for the different types.
>
> If you find that you're passing the same sets of keyword arguments to a
> set of functions, maybe you should define your own composite type to hold
> the arguments.
>

Reply via email to