HaloO,

the smart match table in S03 has the Any ~~ Num meaning
numeric equality. But shouldn't that be a bit fuzzier?
E.g. a match $x ~~ $num should check abs($x - $num) < epsilon
with an epsilon that depends on the size of $num.

Also for strings some fuzziness might be a good idea, e.g.
to go case insensitive.

The driving idea is that if someone uses ~~ instead of
== or eq some form of approximation is intended.


Regards, TSa.
--

"The unavoidable price of reliability is simplicity" -- C.A.R. Hoare
"Simplicity does not precede complexity, but follows it." -- A.J. Perlis
1 + 2 + 3 + 4 + ... = -1/12  -- Srinivasa Ramanujan

Reply via email to