|Loïc Grenié on Tue, 10 Nov 2015 12:31:59 +0100|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|Re: Vector of args|
Bill Allombert writes:
> If f is variadic, the variadic arguments must grouped in a vector in the
> last component of A.
I'm trying to gently persuade Bill not to do this bit. What does
anyone else think?
I would like to call(f,[1,2,3]) for either f plain function or variadic.
I think in general-purpose code you often won't know which some f might
be, and even if you do then you'd prefer not to know for the sake of
uniformity, protection against future change to f, etc. Otherwise if
code wants to allow both f then if I'm not mistaken it would have to
resort to maybe if(isvariadic(f),call(f,[v]),call(f,v)).