Re:Scala – The Simple Parts
by kasey_junk on Tuesday May 13, 2014 @04:11PM
(#7740398)
When dealing with arithmetic equations the cognitive burden of add vs + can be quite high. Not allowing the overriding of arithmetic operators means that all new mathematical code you right will be second class vs primitives, encouraging people to not use special types in math operations. This leads to unit mismatches and other sorts of bugs.
The ~ operator in scala is the same as in java (if it isn't overloaded)
The ~ operator in scala is the same as in java (if it isn't overloaded)