in reply to Re: smart match operator should be smarter!
in thread smart match operator should be smarter!

But the smart match operator is supposed to be commutative, yet:

No it's not. See Re^4: smart match operator should be smarter!

  • Comment on Re^2: smart match operator should be smarter!

Replies are listed 'Best First'.
Re^3: smart match operator should be smarter!
by 7stud (Deacon) on Nov 22, 2009 at 00:01 UTC

    Fixing the aforementioned bugs required making ~~ non-commutative.

    I don't see any aforementioned bugs???

    Ok, so not commutative anymore. Another flea from the llama 5th bit me.

      It made overloading ~~ impossibly complex. I think there were other problems too. If you use given/when, you shouldn't notice a difference.