On Tue, 2004-04-20 at 10:51, John Siracusa wrote: > Hm, so how would the "is required" trait that Damian posted work? Would it > simply be shorthand for a run-time check that I don't have to write myself? > I was under the impression that it would work the way I described earlier: > > sub foo(+$a is required, +$b is required) { ... }
Your example is a non-multi sub, which AFAIK means that you can do this at compile time. But for multis and methods, I think Larry and Dan's comments still hold. The likelyhood that P6.0.0 will make this distinction is another thing. I'd rather have a language that works than one that is complete. Plenty of time to complete it later, but those who are thinking of taking on large-scale development with it (e.g. converting over large CPAN modules or implementing new Perl6ish libraries) just want something that runs :) -- Aaron Sherman <[EMAIL PROTECTED]> Senior Systems Engineer and Toolsmith "It's the sound of a satellite saying, 'get me down!'" -Shriekback