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

[perl #116913] experimental warning for given/~~ before 5.20.0

Thread Previous
From:
Brian Fraser via RT
Date:
March 25, 2013 05:59
Subject:
[perl #116913] experimental warning for given/~~ before 5.20.0
Message ID:
rt-3.6.HEAD-28177-1364191143-675.116913-15-0@perl.org
On Sun Feb 24 19:20:57 2013, rjbs wrote:
> 
> The behavior of given/when/~~ are likely to change in perl 5.20.0:
> either smart
> match will be removed or stripped down.  In light of this, users of
> these
> features should be warned.  A category "experimental::smartmatch"
> warning
> should be issued for these features when they are used.
> 

https://github.com/Hugmeir/utf8mess/tree/experimental_given_when_smartmatch

The branch introduces three new warnings:

given is experimental
when is experimental
Smartmatch is experimental

The three are under the experimental::smartmatch category. There's a
handful of commits that remove uses of smartmatch throughout the core,
and then a big one that introduces the three warnings & disables them in
the tests.

The last commit are changes to autodie to silence the warning, but that
has upstream => cpan, so it shouldn't be merged.

-- 
--hugmeir


---
via perlbug:  queue: perl5 status: new
https://rt.perl.org:443/rt3/Ticket/Display.html?id=116913

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