in reply to Re: What modules should be added to the corelist?
in thread What modules should be added to the corelist?

I would rather see Syntax::Keyword::Try in core. The corollary to that is that it would make sense as a feature flag, and as a core feature it could reach into internals that a CPAN module cannot (unless you're Coro).
  • Comment on Re^2: What modules should be added to the corelist?

Replies are listed 'Best First'.
Re^3: What modules should be added to the corelist?
by NERDVANA (Priest) on Aug 04, 2024 at 11:08 UTC
    ...then I guess you'll be happy to know that it was a core feature 3 years ago, and as of v5.40, it is no longer experimental.

    $ perl -E 'use v5.40; try { die "x" } catch ($e) { say $e; }'

      yes indeedee I discovered this a few weeks ago. OT: I sometimes used Try::Tiny. Do you know how the name clash will be handled if I don't modify my code to remove that package?

        Well if you don't modify it at all, it won't say "use v5.40" :-)

        I have not tried both in the same file, but I don't like the extra call stack from Try::Tiny in my stack traces, so I'm happy to take the time to remove it. But actually, none of my work projects are deployed on 5.40 yet. I need to convince my coworkers to make some time for it.