in reply to RFC: Devel::Deprecate
I'm ambivalent about the 'if' condition
I'm beyond ambivalent. What would be the advantage of that over
if ( @_ ) { deprecate( { reason => 'Should no longer have an optional change event', warn => '2008-06-12', # or DateTime object die => '2008-08-12', # or DateTime object } ); }
why leave dead code?
I don't see more or less dead code either way.
I agree with others - This thing should be a no-op except when explicitly enabled, e.g. in development/testing. I think an environment switch, similar to DEBUG, with multiple severity levels, would work.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: RFC: Devel::Deprecate
by Ovid (Cardinal) on Apr 24, 2008 at 15:20 UTC | |
by jplindstrom (Monsignor) on Apr 25, 2008 at 11:35 UTC |