>From the recent P6 Summary: > Larry's response is a masterpiece of conciseness: > > Well, actually, we saved you last summer when we decided to make + > mean that the parameter must be named.
Larry's response also didn't really address the issue, since parameters marked with a + in the signature are optional, not required. > Discussion continued after this of course, but it was mostly concerned > with making sure things worked as expected. The continuing discussion revealed why it is not possible to check for required params at compile time (well, for methods, anyway), but I still wanted a way to tell Perl 6 to do runtime checks "for me" in response to a particular signature. Damian suggested an "is required" trait for signatures: > sub foo(+$a is required, +$b is required) { ... } which I'm all for, even if it is only a runtime check, but I'm not sure if this is just one of Damian's Crazy Ideas(tm) or if it'll actually end up as a standard part of the Perl 6 language. -John