develooper Front page | perl.perl5.porters | Postings from November 2000

Re: Plan to try again with Carp

Thread Previous | Thread Next
From:
Wolfgang Laun
Date:
November 27, 2000 05:11
Subject:
Re: Plan to try again with Carp
Message ID:
3A225D4C.21F8F428@alcatel.at
Ben Tilly wrote:
> 
> However having the code
> already structured in terms of A "trusts" B will make
> any proposed mechanism for tweaking much easier to implement.

Agreed: a structure handling "trust" due to inheritance
should handle additional relations easily.

> 
> Cheers,
> Ben
> 
> PS Something that I am wondering at.  I often personally use
> "confess" when "croak" should do because I find it useful
> to get the arguments to the current function call.  Would it
> be a bad idea to have the short message have added the
> current arguments?  That would have saved me a lot of
> headaches in the past.

Isn't this what -MCarp=verbose is supposed to do for you?
"...force Carp to treat a croak as a confess and a carp
as a cluck across all modules..."

Regards,
-Wolfgang

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About