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

Re: pounding the smartmatch drum

Thread Previous | Thread Next
September 12, 2016 17:03
Re: pounding the smartmatch drum
Message ID:
On Fri, Sep 09, 2016 at 01:50:30PM +0200, Aristotle Pagaltzis wrote:
> * Zefram <> [2016-09-08 03:24]:
> > but code doing it already incurs a "given is experimental" warning.
> True. (At least on recentish perls.)  That’s a fair point.

People on non-recent perls are only going to be surprised if they 
    1) use the given ($@) construct, 
    2) upgrade to 5.26.0 (assuming this proposal makes it to 5.26.0), and
    3) skip all the intermediate perls that do warn.

But people skipping over several versions with an upgrade are always
at a risk of getting surprised. No many how many cycles we have a
"deprecated" (or in this case a retro active "experimental") warning,
it's always theoretical possible someone upgrades from perl that did
not have this warning. That's not something specific to a change to
~~ and/or given.

The only defense against that is to never ever change anything.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About