3 ms·
So if I want 3 + myBigInt to work? (Which I'll note most languages that support operator overloading support)
by joshuamorton 6y ago
So if I want 3 + myBigInt to work?
(Which I'll note most languages that support operator overloading support)
- clhodapp 6y agoYes, that would be actual operator overloading. Personally, I've always wanted languages to be stricter about that kind of thing. It's not that hard to explicitly express the desired conversions to make the types on both sides of your binary math operators the same and it feels a lot more "controlled" to me to do so.