Newsgroups: perl.perl6.language
From: sirac...@mindspring.com (John Siracusa)
Date: Tue, 20 Apr 2004 10:51:53 -0400
Local: Tues, Apr 20 2004 10:51 am
Subject: Re: A12: Required Named Parameters Strike Back!
On 4/20/04 10:42 AM, Dan Sugalski wrote:
> At 9:50 AM -0400 4/20/04, John Siracusa wrote: Hm, so how would the "is required" trait that Damian posted work? Would it >> On 4/19/04 7:16 PM, Larry Wall wrote: >>> Well, no, we're still stuck at run-time validation of that. In the case >>> of methods you can't really do anything else anyway, generally speaking. >> Why is that? > Because at compile time all you have is a generic thing, a (possibly 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) { ... } foo(); # compile-time error! foo(a => 5, b => 7); # ok It really is a shame about the inability to do it at compile-time with -John You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||