News for hackers. Stuff that matters.
Re:A Gentle Introduction to Rust by conradev on Wednesday April 11, 2018 @09:57PM (#16817409)
> No mention of how you would remember that `f64` is the default floating point type

While the default is `f64`, it's only used if the type can't be inferred otherwise.

If the author had changed the `f64` in the code sample to `f32`, type inference would have made the float literal to be an `f32` to match.

That is a little complicated to explain, but the UX is such that literals generally "just work".

There are no comments on this comment yet.