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

Re: Perl 6 mini-essay: eqv, ===, =:=, etc.

by TimToady (Parson)
on May 05, 2008 at 21:03 UTC ( [id://684751]=note: print w/replies, xml ) Need Help??


in reply to Perl 6 mini-essay: eqv, ===, =:=, etc.

In Summary table column 1, s/evq/eqv/.

Also, your smartmatch is wrong on the array case, where P5 and P6 differ. In P6 you must say any(@list), or you're asking if $x matches the entire list (where you are presuming that $x is some other listy object).

  • Comment on Re: Perl 6 mini-essay: eqv, ===, =:=, etc.

Replies are listed 'Best First'.
Re^2: Perl 6 mini-essay: eqv, ===, =:=, etc.
by John M. Dlugosz (Monsignor) on May 05, 2008 at 23:30 UTC
    That makes sense. any can be used with other comparison operators and doesn't need the smartmatcher to apply the iteration.

    I changed the example to use a hash, which is still interesting. I wonder if anything is left that is really doing more than knowing which part to test or which comparison to use. I take that as a good sign, of separation of features.

    —John

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2024-04-18 11:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found