4 ms·
I just don't use overloads, and not even a language that has overloads.
by jstimpfle 7y ago
I just don't use overloads, and not even a language that has overloads.
- xscott 7y agoWhat language? Unless it's Ocaml, I'll be surprised if addition isn't overloaded for ints and floats at the least. Most people are fine with some overloading... To each their own though.
- jstimpfle 7y agoYes but that doesn't really apply to your point. Addition is built in. It doesn't affect completion, and barely affects type checking. The "overload" is fixed and generally well understood. It's almost not an overload at all if you view it as an operation on the set of all integers. There is only a clamping in the end that depends on the size of the type (unless it's unlimited precision arithmetic on BigNums)