https://kotlinlang.org logo
b

bdawg.io

09/21/2017, 6:55 AM
I agree that comparing all other objects is handy, but the arithmetic conventions (
plus
,
minus
, etc. and even
compareTo
) provide a modular way to overload the operator instead of having to share this override hierarchy that can potentially quickly build up to a large call stack with a bunch of
super
handoffs