good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^4: eval: Why use the 'Zombie error' idiom?by kikuchiyo (Hermit) |
on Oct 18, 2019 at 11:34 UTC ( [id://11107654]=note: print w/replies, xml ) | Need Help?? |
The reason I avoid Try::Tiny is that its catch block is actually a function in disguise, not just a block like with the original eval idiom. So a return from a Try::Tiny catch block returns just from that block, and not from the enclosing function, which is useless and misleading.
In Section
Seekers of Perl Wisdom
|
|