>>>>> "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

Reply via email to