I would think, because usually you do not need it. If in Java you need to enter something like
BigDecimal b = new BigDecimal(1.23).add(BigDecimal.ZERO);
in Scala, there are numerical conversions that mean you can write
val b = BigDecimal(1.23) + 0
You can also write it simply as BigDecimal(0)
. If you create an instance of this file, you may want to cache it as a named value (as for any other number), but you usually do not need it, and I think this simplifies the API if you delete special cases that you must remember.
source share