in reply to "try" partly experimental in v5.40
in thread New built-in perl5.38 try/catch syntax

It wasn't pasted. The really important word in the snippet which you quoted is "partly". Most of it is now non-experimental and can be used in long-term code with confidence. The only part which remains experimental for now is the finally {} block.

As of Perl 5.40, use of this feature without a finally block no longer triggers a warning. The optional finally block is still considered experimental and emits a warning, except when explicitly disabled as above.

I'm more than happy for p5p or PSC or whoever it is that decides these things to take their time with new features like this. Especially given the mess that was smartmatch and given/when. Nobody wants to see a repeat of that.


🦛

Replies are listed 'Best First'.
Re^2: "try" partly experimental in v5.40
by parv (Parson) on Aug 19, 2024 at 19:37 UTC
    I'm more than happy for p5p or PSC or whoever it is that decides these things to take their time with new features like this. Especially given the mess that was smartmatch and given/when. Nobody wants to see a repeat of that.

    Me too.

    As mentioned earlier, warning lists that "try" feature could be removed. If that does not apply to whole of it, then it ought to be more specific. If it does or if "finally" is used, then "try" use ought to continue to spit out feature-is-experimental-warning.