Re:C++23: The Next C++ Standard
by throwaway894345 on Wednesday July 12, 2023 @08:09AM
(#36693362)
Yes, overloading is bad (operator overloading is a kind of overloading).
[ Parent
| on HN ]
Re:C++23: The Next C++ Standard
by joshuamorton on Wednesday July 12, 2023 @04:44PM
(#36701398)
How do you do math without overloading? I have ints, floats, bignums, vectors, matrices, complex numbers, and potentially fractions.
You want every operation to have a distinctly named version for each other numeric type?
Maybe you can reduce some of those, but you can't really have interfaces without some overloading.