EnlightenedPerlOrganisation / task-kensho

A Glimpse at an Enlightned Perl Distribution
http://search.cpan.org/dist/Task-Kensho
Other
71 stars 23 forks source link

Add Nice::Try to Exceptions section #78

Open davebaird opened 2 years ago

davebaird commented 2 years ago

All the Perl try/catch implementations suffer from significant deficiencies compared to an ideal syntax. I think Nice::Try comes closest to perfection. No extraneous semi-colons, it has a finally block, but best of all, it supports multiple catch blocks with exception filtering.

Grinnz commented 2 years ago

Thanks for the suggestion, but it is a source filter that uses PPI so I would not consider it suitable for recommendation for production code.