Alvaro Fernandez writes:
> However, I was not aware you could use argument keywords with
> non-optional arguments. (I'm ready to be corrected on that score).
Consider yourself corrected. The use of argument keywords is
essentially orthogonal to optionality. About the only thing they
have in common is that both require explicit interfaces.
Optional arguments happen to be particularly good candidates for
use with argument keywords, but they are certainly not the only
cases where the keyword form is useful. The keywords can be useful,
for example, when its hard to remember the order of the arguments.
For example, I keep getting confused about which order the first two
arguments of the INDEX intrinsic are in. I can convince myself that
either order makes sense. But I can always remember them based on the
names STRING and SUBSTRING.
--
Richard Maine
[log in to unmask]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|