develooper Front page | perl.perl5.porters | Postings from June 2022

Re: disabling smartmatch and when()?

Thread Previous | Thread Next
From:
Dan Book
Date:
June 20, 2022 22:10
Subject:
Re: disabling smartmatch and when()?
Message ID:
CABMkAVWPthidnwZ8CdV_hO931C_NeJge24O4B7FAC3N8Ai1EPA@mail.gmail.com
On Mon, Jun 20, 2022 at 5:56 PM SHIRAKATA Kentaro <argrath@ub32.org> wrote:

> How about declaring smartmatch as "discouraged" instead?
>
>  From https://perldoc.perl.org/perlpolicy#discouraged:
>
> ---
>
> discouraged
>
>      From time to time, we may mark language constructs and features which
> we consider to have been mistakes as discouraged. Discouraged features
> aren't currently candidates for removal, but we may later deprecate them if
> they're found to stand in the way of a significant improvement to the Perl
> core.
>
> ---
>
> I think it meets this criterion.
>
>
In practice it is treated this way already. But we might as well fully
deprecate it. It needs to be replaced with features that are better
designed, while not silently changing behavior of existing programs by
trying to fix the existing operator.

-Dan

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