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