When a function has a default value for some argument,
it would be nice to skip it and use the default value
even when supplying an value for a later argument.
For example, suppose we have this function definition:
f(a=2, b=[]) { ... };
Currently if you want to supply a value for b but you
the default value for a is fine, you still must supply
an actual value for a:
f(2,[x=1])
It would be nice if you could simply skip the arguments
for which you're willing to accept the default values:
f(,[x=1])
This would be particularly handy with _run_tool, which
has a lot of arguments. Suppose you just want to
change existing_writable (the 10th argument)? This:
_run_tool(./target_platform,cmd_list,,,,,,,,TRUE)
Is nicer than this:
_run_tool(./target_platform,cmd_list,"","report","report","report_nocache","report_nocache",-2,".WD",TRUE)
Logged In: YES
user_id=95236
That sounds like a nice idea. Wish we'd thought of it
earlier. Fortunately it can be added without breaking
compatibility of old models with the new evaluator.