2 ms·
Yes, Java has this one strong inconsistency on its type system. The interesting thing is that the addition operator has a not completely predictable behavior ex
by marcosdumay 3y ago
Yes, Java has this one strong inconsistency on its type system. The interesting thing is that the addition operator has a not completely predictable behavior exactly because the language designers insisted that custom operators reduce the language predictability.
But anyway, it's much less bad in Java because you can force it to err by declaring what type of thing you want it to return.