Skip Menu |

This queue is for tickets about the TryCatch CPAN distribution.

Report information
The Basics
Id: 97089
Status: open
Priority: 0/
Queue: TryCatch

People
Owner: Nobody in particular
Requestors: ether [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: mark as deprecated?
Should this dist be marked as deprecated/discouraged, just as MooseX::Declare has, because of its use of Devel::Declare?
On 2014-07-09 10:59:11, ETHER wrote: Show quoted text
> Should this dist be marked as deprecated/discouraged, just as > MooseX::Declare has, because of its use of Devel::Declare?
If it is to be marked as deprecated/discouraged: what are the alternatives? Especially, is there something which handles a return within a try block as expected (Try::Tiny, for example, does not)?
On 2019-09-27 07:00:04, SREZIC wrote: Show quoted text
> On 2014-07-09 10:59:11, ETHER wrote:
> > Should this dist be marked as deprecated/discouraged, just as > > MooseX::Declare has, because of its use of Devel::Declare?
> > If it is to be marked as deprecated/discouraged: what are the > alternatives? Especially, is there something which handles a return > within a try block as expected (Try::Tiny, for example, does not)?
Yes, Syntax::Keyword::Try does.
On 2019-09-27 20:47:35, ETHER wrote: Show quoted text
> On 2019-09-27 07:00:04, SREZIC wrote:
> > On 2014-07-09 10:59:11, ETHER wrote:
> > > Should this dist be marked as deprecated/discouraged, just as > > > MooseX::Declare has, because of its use of Devel::Declare?
> > > > If it is to be marked as deprecated/discouraged: what are the > > alternatives? Especially, is there something which handles a return > > within a try block as expected (Try::Tiny, for example, does not)?
> > Yes, Syntax::Keyword::Try does.
The other feature of TryCatch is https://metacpan.org/pod/Syntax::Keyword::Try#Typed-catch So it seems that https://metacpan.org/pod/Syntax::Feature::Try would be the better replacement.
On Fri Dec 20 06:30:56 2019, SREZIC wrote: Show quoted text
> On 2019-09-27 20:47:35, ETHER wrote:
> > On 2019-09-27 07:00:04, SREZIC wrote:
> > > On 2014-07-09 10:59:11, ETHER wrote:
> > > > Should this dist be marked as deprecated/discouraged, just as > > > > MooseX::Declare has, because of its use of Devel::Declare?
> > > > > > If it is to be marked as deprecated/discouraged: what are the > > > alternatives? Especially, is there something which handles a return > > > within a try block as expected (Try::Tiny, for example, does not)?
> > > > Yes, Syntax::Keyword::Try does.
> > The other feature of TryCatch is > https://metacpan.org/pod/Syntax::Keyword::Try#Typed-catch > So it seems that https://metacpan.org/pod/Syntax::Feature::Try would > be the better replacement.
When TryCatch got broken with the new version 0.006020 of Devel::Declare, I developed a replacement module Nice::Try which provides all the same features. Syntax::Keyword::Try is great, but you cannot do exception variable assignment nor use Exception class like: try { # something } catch( Exception $e ) { # Catching exception with object class Exception }