in reply to Re^4: Definition of numerically equal and rationale for 'you' == 'me'
in thread Definition of numerically equal and rationale for 'you' == 'me'

Hm. If only that notion had been carried through to other operators...

Indeed. It works so well with most of the operators that it stands out so strongly when it doesn't work... such as the smartmatch operator.

  • Comment on Re^5: Definition of numerically equal and rationale for 'you' == 'me'

Replies are listed 'Best First'.
Re^6: Definition of numerically equal and rationale for 'you' == 'me'
by BrowserUk (Patriarch) on Mar 03, 2012 at 03:46 UTC
    such as the smartmatch operator.

    I've never used that in real code. Nor given/when for that matter.

    I've tried to use both a few times for the sake of using them, and found that the reality didn't fit with my expectations, to the point where even reading the documentation over and over, I couldn't work out why I got the results I did. As such, neither have ever made it into my working vocabulary, despite that I know they are there.

    Extending Perl requires far more than just implementing a few specific behaviours. It seems to me that you really need Mr Wall's particular brain -- and considerable time -- to see the full impact of such changes.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

    The start of some sanity?

      I also haven't been able to "effectively use" the smart match operator. I've used it in some places to "just play around", but grep() or a List::Util function would have been just as good for the simple situations that I've used it in for experimentation.

      I think that this thing is very complicated and is a "solution" in "search of a problem".

      I haven't been able to figure out where this thing can be effectively used in ways that "normal" Perl is awkward or not sufficient. A big part of this is also whether or not the result of what it does is going to be "easily understandable".