Anybody think there are advantages to using a class or struct to pass arguments ?
Like instead of
f(int,float,string)
Have
f(Args)
Where Args
is struct
with int
,float
,string
members.
Advantage is easy to create multiple default parameters and not have to change function signature when new arguments added.