[Koha-bugs] [Bug 31602] Replace Try::Tiny with something faster
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Sep 26 01:32:08 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31602
David Cook <dcook at prosentient.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dcook at prosentient.com.au
--- Comment #2 from David Cook <dcook at prosentient.com.au> ---
On https://metacpan.org/pod/Syntax::Keyword::Try, the author points out that
try/catch/finally was (finally) added to Perl 5.34 (released May 20 2021) and
that Feature::Compat::Try should be used for new code
It looks like Perl 5.34 is used in Ubuntu from 22.04 onward. In Debian, it's in
bookworm/testing.
Although it looks like the "try" feature is still marked as experimental:
https://perldoc.perl.org/feature#The-'try'-feature.
Looks like Syntax::Keyword::Try has some issues with Perl older than 5.24
(https://metacpan.org/pod/Syntax::Keyword::Try#$@-is-not-local'ised-by-try-do-before-perl-5.24)
but I don't think we support any OS that has a Perl that old.
Syntax::Keyword::Try/Feature::Compat::Try sound pretty interesting.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list