Dear monks,
I am asking for your wisdom in handling exceptions and best practices for dealing with them.
Yes, I know about Try::Tiny, Syntax::Feature::Try, Syntax::Keyword::Try, TryCatch and others modules. But I want to elaborate for myself best practices for dealing with exceptions with die/eval. I prefer to use Carp and its stacktrace and I want to use native language features despite they can be ugly.
What practices would you recommend for me as for module writer and creator of different applications?
In reply to Best practices for handling exceptions in die/eval style by krautcat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |