3 ms·
Rust just takes "explicit is better than implicit" further than most. No hidden type casts. Floating point operations aren't quite the same as integer operatio
by SAI_Peregrinus 4y ago
Rust just takes "explicit is better than implicit" further than most. No hidden type casts.
Floating point operations aren't quite the same as integer operations. Float operations aren't commutative, for one. So it's nice to be suae you really intended to use a float operation on an integer by requiring an explicit cast, so you can get the order correct.