3 ms·
> The fact that operators can't be overloaded is a HUGE benefit. Not if you're trying to work with other algebraic data types. > If I see a + b I know that t
by lamontcg 4y ago
> The fact that operators can't be overloaded is a HUGE benefit.
Not if you're trying to work with other algebraic data types.
> If I see a + b I know that this is either a string or a number not some hidden method.
Great if your world only consists of numbers and strings.
And really in this day and age with strongly typed languages your IDE should be able to easily tell you if someone is doing something totally insane with any given operator. In most cases, they won't be and it'll be easy to decipher exactly what they mean.
Stop trying to prevent everyone from being able to do useful things just because some people write crappy code that abuses language features.