in reply to Re^2: Replacing warn/die with carp/croak?
in thread Replacing warn/die with carp/croak?

Let them eval you. That will lead to more maintainable code.

A bold statement. Please expand your reasoning - why would them having to eval me make their code more maintainable? or mine, for that matter?

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
  • Comment on Re^3: Replacing warn/die with carp/croak?

Replies are listed 'Best First'.
Re^4: Replacing warn/die with carp/croak?
by fenLisesi (Priest) on Oct 05, 2007 at 09:17 UTC
    Man, I was trying to avoid the grand-statement effect by calling myself a quack, truly yours, but you called it. OK, well, I think being death prone helps:
    • the module author by making the module code simpler
    • the user in the long term by forcing him to be explicit about what he wants to do with the errors
    • the user's user by making it likelier that the user will provide his own error messages, which will probably make more sense to the user's user.

    I am here to learn, though, not teach, which I couldn't even if I wanted to, so I am eager to hear your response, shmem, and those of other wise monks. Cheers.