[rust-dev] Why are generic integers not usable as floats?
matt at mcpherrin.ca
Thu Jun 19 16:02:51 PDT 2014
This came up on IRC today, and it was something I've wondered in the past
but nobody had an immediately good answer either way.
I think it's fairly inconsistent that these two code samples aren't
let a = 1f32;
let b: f32 = 1;
It's fairly annoying in my opinion to have to occasionally add a .0 after
floating point literals.
Especially since we're getting rid of integer fallback in RFC 30, I think
this issue ought to be thought about.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rust-dev