Am 21.07.2011 22:48, schrieb Allin Cottrell:
Two new things in CVS that I think should be
uncontroversial, but please let me know if any
breakage results:
* Up till now it has been impossible to give a scalar
parameter to a user-defined function a default value of
NA. This is partly because NA was used as the internal
representation for "no value set". However, it seemed
to me that in some cases it may be useful to set a
default of NA for a trailing parameter, meaning that
if the user omits a value for that parameter, it
should then be ignored (not used) within the function.
This is now possible, but note, only for parameters
of type "scalar", not "bool" or "int".
It's nice to be able to omit parameters in function calls when they are
redundant. However, this would seem to apply to all types of arguments.
I somehow would prefer a coherent solution to this instead of a
case-by-case approach (which is hard to remember).
just imho of course,
sven