2 ms·
> IMO using operator overloading for this kind of thing makes it hard to read, since I have to be extra careful to mentally parse whether that `*` is a multipli
by dragonwriter 3y ago
> IMO using operator overloading for this kind of thing makes it hard to read, since I have to be extra careful to mentally parse whether that `*` is a multiplication or units
Units are inherently exactly multiplication.
5 meters is:
5 (unitless) * (1) meter
- ahupp 3y agoYes. There are many (infinitely!) ways to write an equivalent expression, most of which are not as clear to read as the standard format.