2 ms·
> Operator overloading is an anti-feature and every language with it, would be better without it. Fight me. In Scala, infix operators and methods are the same
by paulddraper 3y ago
> Operator overloading is an anti-feature and every language with it, would be better without it. Fight me.
In Scala, infix operators and methods are the same thing.
a + b
a.+(b)
Or
a.map(b)
a map b
It's never been clear to me why there should be special "operator" things.