Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
None
-
None
Description
when writing double d = 1.2, then Groovy first creates a BigDecimal to then transform it to a double. Using any primitive type I think there is no need to first create the BigDecimal, it should be good enough to just create a constant for the target type. I think this is especially important for the static compiler, but a general Groovy problem