develooper Front page | perl.perl5.porters | Postings from September 2018

Re: Fatalizations promised for perl-5.30: what is their status

Thread Previous | Thread Next
From:
Tomasz Konojacki
Date:
September 25, 2018 16:27
Subject:
Re: Fatalizations promised for perl-5.30: what is their status
Message ID:
1537892863.3436717.1520231232.6788D967@webmail.messagingengine.com
On Tue, 25 Sep 2018, at 17:51, Dave Mitchell wrote:
> On Tue, Sep 25, 2018 at 10:00:00AM -0500, David Nicol wrote:
> > how broad will the fatalizations be?
> 
> Presumably code that emits a deprecation warning in 5,28.0 along the lines
> of 
> 
>     .... something ... . This will be a fatal error in Perl 5.30
> 
> Will instead croak in 5.30.0
> 
> Things which didn't warn before wont croak.
> 
> People are free to suggest code usages which currently don't warn, that
> should get a deprecation warning in 5.30 and croak in 5.32 or whatever.
> 
> -- 
> A problem shared is a problem doubled.

Code that currently warns: 

my $foo if 0;

Code that does not:

my $foo = 1 if 0;
my $foo if $maybe_false_maybe_not;
my $foo = 1 if $maybe_false_maybe_not;

IMO all of the above should warn because they trigger (in some cases only potentially) the same weird behaviour.

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