|
|
|
|
|
by EdwardDiego
3777 days ago
|
|
> Computing with units (which is tough to put in a language, but so is compilation F#'s units are nice. > Computing with dates in a sensible way The new Java time API is pretty good. But honestly my favourite datetime API would have to be Postgres'. > BigDecimal for currency, let me laugh Out of curiosity, why? |
|
For BigDecimal, my grief is that it makes code horrible (at least in my experience, I'm still locked in JDK 1.7).
BigDecimal has the problem I see with the rest of my griefs : it is possible to compute things correctly with code (obviously), but the way the code is written is ugly (and painful).
Wouldn't it be nicer if : Of course, this notation doesn't help much with rounding, but at least it makes the code easier to read. And trust me, using BigDecimal, doesn't prevent many people of making mistakes with rounding.