develooper Front page | perl.perl5.porters | Postings from February 2021

Re: Do we want a CXt_CUSTOM?

Thread Previous | Thread Next
From:
Paul "LeoNerd" Evans
Date:
February 8, 2021 18:27
Subject:
Re: Do we want a CXt_CUSTOM?
Message ID:
20210208182713.694274ef@shy.leonerd.org.uk
On Mon, 8 Feb 2021 16:23:08 +0000
Dave Mitchell <davem@iabyn.com> wrote:

> On Wed, Feb 03, 2021 at 10:56:34PM +0000, Paul "LeoNerd" Evans wrote:
> > I would like to propose adding a CXt_CUSTOM
> > type as number 15 (leaving space for two more still).  
> 
> This would be for general XS use, not just for by core?

Indeed it would. E.g. currently I have a lot of code in some CPAN
modules (Syntax::Keyword::Try, and would need to add similar to
Syntax::Keyword::Finally), to handle the return/goto/next/last/redo
cases, which could all become a lot shorter if such modules had that
feature available to them.

Admittedly it's unlikely to be useful in SKT's case because that's
being migrated into core *anyway*, but I am thinking ahead to "the next
one", whatever it may be.

-- 
Paul "LeoNerd" Evans

leonerd@leonerd.org.uk      |  https://metacpan.org/author/PEVANS
http://www.leonerd.org.uk/  |  https://www.tindie.com/stores/leonerd/

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About