3 ms·
Minor or not, this: > You can now use associated constants on floats and integers directly, rather than having to import the module. That is, you can now write
by axegon_ 7y ago
Minor or not, this:
> You can now use associated constants on floats and integers directly, rather than having to import the module. That is, you can now write u32::MAX or f32::NAN with no use std::u32; or use std::f32;.
is neat! Awesome! Thanks!
- kibwen 7y agoThat's my RFC! Yes, it's great to be able to address such a curious (albeit minor) historical wart from Rust 1.0. :) https://github.com/rust-lang/rfcs/blob/master/text/2700-associated-constants-on-ints.md https://github.com/rust-lang/rfcs/blob/master/text/2700-asso...