Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^8: canonical doc explaing need for "eval { ... } or do {...}" construct

by LanX (Saint)
on May 13, 2022 at 19:59 UTC ( [id://11143887]=note: print w/replies, xml ) Need Help??


in reply to Re^7: canonical doc explaing need for "eval { ... } or do {...}" construct
in thread canonical doc explaing need for "eval { ... } or do {...}" construct

It seems two problems were merging in my mind (which is currently overdosed with antibiotics)
  • writing CPAN modules which work on older Perl versions (like - as an extreme case - those notoriously antique Perls on AIX )
  • compatibility of Try::Tiny code after the new try-catch feature leaves the experimental phase.
The new try-catch has obvious and subtle incompatibilities to Try::Tiny, like the explicit catch ($e) argument.

First case may need to called differently, probably "Old-Compatibility" ... (I'm eager to learn about a proper naming).

The sheer number of modules already using Try::Tiny according to hippo make the second case a real "Backwards-Compatibility" issue. Because at some point a feature should become a default.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11143887]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-03-29 02:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found