But one (somewhat relevant) point is that it's now OK (in recent
git) to skip one or more optional arguments altogether, provided one inserts
commas to preserve the argument count where necessary.
(Commas are not required if only trailing optional arguments are
skipped.)
For example, if a function foo() takes three arguments, with the last two
optional, and a caller wishes to supply only arguments 1 and 3, then
foo(x,,z)
is an acceptable call.
Allin
Hi there,
that is indeed very nice, for one has not to take care of the type that is missing (up to
now I skipped with null, which also works if null is a valid default).
PS: Now that I am delving more and more into hansl, I also love it more and more. It is
really cool, (relatively) simple and very powerful. So thanks for the great service you
provide for people like me!
Best
Frederik