Currently specifying the same refinement multiple times gives an error. It could be interesting if doing so would be legal if the arguments to the refinement were declared to be variadic.
foo: function [x /y [integer! <...>]] [
print x
while [not tail? y] [print take y]
]
>> foo/y/y/y "variadic!" 10 20 30
variadic!
10
20
30
While a seemingly frivolous feature, this came up as being a potential aspect for making a unified dialect which covered command-line processing as well as function arguments.
Currently specifying the same refinement multiple times gives an error. It could be interesting if doing so would be legal if the arguments to the refinement were declared to be variadic.
While a seemingly frivolous feature, this came up as being a potential aspect for making a unified dialect which covered command-line processing as well as function arguments.