If we do have deep value equality checks, then "default" == and eq are probably:
sub &infix:<==> ( $x, $y ) {
+$x === +$y;
}
sub &infix:<eq> ( $x, $y ) {
~$x === ~$y;
}
So that the compare-as-sometype behavior is retained from perl 5
without introducing new complexity to the objects being compared as
strings/numbers.
--
Yuval Kogman <[EMAIL PROTECTED]>
http://nothingmuch.woobling.org 0xEBD27418
pgpefrROP9pJ6.pgp
Description: PGP signature
