News for hackers. Stuff that matters.
Re:Does C++ still deserve a bad rap? by fbkr on Saturday October 17, 2020 @04:28PM (#24813023)
This fails when you want `4 + c` or `c + 4.f` etc. So you either have a gross number of overloads doing the same thing, or you just put an implicit constructor to `complex`.

Also, I agree that implicit conversions in general should be avoided, but this complex number example feels like the perfect use case.

There are no comments on this comment yet.