develooper Front page | perl.perl5.porters | Postings from March 2020

Re: Thoughts in the direction of a core try/catch syntax

Thread Previous
From:
Dan Book
Date:
March 5, 2020 17:44
Subject:
Re: Thoughts in the direction of a core try/catch syntax
Message ID:
CABMkAVWeCFH1nNeJNMUB9DCkOw7h47RYfHB20OTpt6iYnWb3hQ@mail.gmail.com
On Thu, Mar 5, 2020 at 12:38 PM Paul "LeoNerd" Evans <leonerd@leonerd.org.uk>
wrote:

>
>   2) Does core reïmplement the exact behavior and semantics of the
>      module as real core code, guarded by some feature perhaps
>
>        use feature 'try';
>
>      at which point, the `sub import` in my existing Try.pm can simply
>      trigger that instead, and the XS part of the module becomes a
>      legacy implementation only required for older perls?
>

I would like to express my vehement support for this idea, as it also
presents a strong "core feature" appearance for a feature which many people
expect from a modern language, and provides more impetus for CPAN modules
to be compatible with it or work with its features, for example.

-Dan

Thread Previous


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