Hi there,

I've tested the thing a bit more, and found it works very nicely, but does not 
seem to support generic non-declared named or variable positional arguments at 
all.

Do I miss something, or is that simply not possible with @NamedVariant?

What I would need occasionally is something conceptually (perhaps with quite 
different syntax, of course) similar to

===
@NamedVariant(extraNamed, extraPos) foo(foo) { println "$foo, $extraNamed, 
$extraPos" }

foo(foo:1, bar:2, 3, 4) // is valid and prints out "1, [bar:2], [3, 4]"
===

(This particular case can be done easily with “foo(Map named, Object... 
positional)”, but with more complex cases the boilerplate processing these args 
explicitly would grow quite rapidly.)

Is there a way to do things like that (easier than writing my own ASTT based on 
@NamedVariant with slightly extended behaviour)? Thanks!
OC

Reply via email to