I have a function with many named arguments that should not depend on global variables for performance reasons
In the following I will call the variables
a,b,c, ... ,y,z
I want to replace them with an
immutable struct or a a named tuple as one function argument:
(a=<value>, b=<value>, c=<value>, …, y=<value>, z=<value>)
struct a b c … y z end
which has the disadvantage that I still need to memorize argument order when initializing with the constructor
Are there suggestions or patterns or caveats how to handle this problem?
As far as I know keyword arguments are not optimized by compiler so I want to avoid that restriction. Am I wrong with that?