Re: RFC 118 (v1) lvalue subs: parameters, explicit assignment, andwantarray() changes
[email protected] (Chaim Frenkel) 28 Aug 2000 18:06:15 -0400
| Newsgroups | perl.perl6.language.subs |
|---|---|
| Message-ID | <[email protected]> |
>>>>> "DC" == Damian Conway <[email protected]> writes: DC> However, I have given thought to allowing conditions to be grouped, DC> and de-activated by group. This would probably meet your need. >> DC> pre mymethod : group("safe-coding practice") { @_ > 0 } DC> pre mymethod : group("debugging") { print @_, "\n"; } >> >> Makes it difficult to specify on the command line. Unless you have >> another way of matching them to higherarchy or perhaps a cost level? DC> There would be a 'contract' pragma: DC> use contract qw("safe-coding practice"); DC> no contract qw("debugging"); DC> no contract; # turn everything off (production code) One issue that bothers me with this. Even though it is a _minor_ edit, I never like to twiddle a working piece of code. No contract should be the default, and during testing it should be overridden from the command line. <chaim> -- Chaim Frenkel Nonlinear Knowledge, Inc. [email protected] +1-718-236-0183