|
I propose adding a way for the user to say "I want to adjust to this number values" and "I want to pass all of them". While syntax is debatable as ever, something like this could work:For function calls, allow an optional "adjuster" in the form :n, where n is either a number or *, meaning "n values" and "all values" correspondingly. Then the examples above could be re-written as follows:bar(foo():2)qux(foo():*, bar())For vararg expressions, a similar adjuster could be used, even though it looks quite strange, so better syntax is probably possible:bar(...:2)qux(...:*, bar())