News for hackers. Stuff that matters.
Re:Please put units in names by dragonwriter on Monday March 21, 2022 @11:29AM (#30755193)
> typealias Dollars = BigDecimal

> typealias Cents = Long

If I ever have to deal with monetary values in a program where someone thought this was a good idea, ... well, it really won't be the worst thing I’ve ever dealt with, but, still.

(If you have dollars and cents as types in the same program, they darn well better work properly together, which is unlikely to work if they are both just aliases for basic numeric types.)

There are no comments on this comment yet.