Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Will 'when()' be removed or deprecated in upcoming version of Perl?

by kcott (Archbishop)
on Jun 22, 2018 at 08:08 UTC ( [id://1217167]=note: print w/replies, xml ) Need Help??


in reply to Will 'when()' be removed or deprecated in upcoming version of Perl?

G'day Darkwing,

"Now this page Beware of the removal of when in Perl v5.28 tells that when() will be removed in perl 5.28, ..."

Well, it doesn't actually say it will be removed, rather to beware of its removal. Yes, I know, it's a subtle distinction.

If you look at the abstract, you'll see "... I haven’t seen an official notice ...", followed by "... by popular outcry these changes won’t be in v5.28.". Also note that the article is about six months old.

Perl 5.28 is currently at RC4 (RC=Release Candidate), and when is still there. I would, however, draw your attention to "perlsyn: Experimental Details on given and when" (from 5.28-RC4). Note phrases like "highly experimental" and "subject to change with little notice" whilst reading that section.

At the end of the day, you shouldn't be using any experimental features in production code. Of course, this particular feature is a little tricky in that regard. It was introduced in 5.10 and many, myself included, used it. But, in 5.18 it was made experimental: "perl5180delta: The smartmatch family of features are now experimental".

I'd advise not using it in any commercial or production grade code; and being aware of potential problems when using it elsewhere.

— Ken

  • Comment on Re: Will 'when()' be removed or deprecated in upcoming version of Perl?
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1217167]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-23 11:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found