Note that the errors arise when the exception disrupts the sequencing of side effects. No side-effects (like state), no problems.
All right. But AFAIK only pure functional programming avoids side-effects, isn't it? ;) How reimplementing the exemple above with no side-effects (in Perl, Java, Python, C++...) is beyond me.
In reply to Re^11: Perl Best Practices
by wazoox
in thread Perl Best Practices
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |