|
|
|
|
|
by wolfgke
2886 days ago
|
|
> It's possible that real world code that converts to double uses temporary variables and a more complicated expression involving other operators with different precedence. The primitive types in Java and their operators have always been a hack for performance in the object-oriented type system of Java. So if such code exists in the program, there can be very good reason (in particular performance), but it always has "code smell". So it always should be commented properly. > if the developers are unaware of the implications You do not do such a conversation if you have not read into the implications. |
|