Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re^2: Update to smartmatch

by ikegami (Pope)
on Dec 26, 2017 at 19:45 UTC ( #1206231=note: print w/replies, xml ) Need Help??

in reply to Re: Update to smartmatch
in thread Update to smartmatch

I don't know all the details

In a few words,

  1. given, lexical $_ and smartmatching were added to Perl without enough vetting in 5.10.

  2. In fact, smartmatching was so bad that it was tweaked in 5.10.1.

  3. People starting noticing the problems with them, which resulted into a new policy: New features to be added to Perl would first be included as experimental features. By default, these warn when used.

  4. given, lexical $_ and smartmatching were retroactively converted into experimental features in 5.18, effectively deprecating existing uses of them.

  5. Lexical $_ was rolled back in 5.24.

  6. given and smartmatching are being revamped for 5.28. It will still be an experimental feature, but it now has a chance of being released as normal part of Perl.

Replies are listed 'Best First'.
Re^3: Update to smartmatch
by Laurent_R (Canon) on Dec 26, 2017 at 20:06 UTC
    Thank you, ikegami. In fact, I knew about the history of smartmatch and given (as well as lexical $_). I was only saying that I don't know the details on the most recent developments as described by Leon and brian (i.e. your point 6) and the discussions around these. But it's probably good to retell the story for the benefits of those monks who would not know or not remember.
        Thanks, ikegami, an interesting discussion.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1206231]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2018-02-19 00:56 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (257 votes). Check out past polls.