3 ms·
I'm on the fence when it comes to operator overloading. I appreciate the readability gains, but the behavior absolutely has to be predictable. For example, my
by RegEx 14y ago
I'm on the fence when it comes to operator overloading. I appreciate the readability gains, but the behavior absolutely has to be predictable.
For example, my biggest gripe with ruby's bcrypt library is how == is non commutative. They do provide a named method alternative, but I was very confused as an infrequent ruby user.