5 ms·
It could (there are 3rd party Rust libraries for arbitrary-size integers), but Rust focuses more on low-level features. Types that have fixed size at compile t
by pornel 10y ago
It could (there are 3rd party Rust libraries for arbitrary-size integers), but Rust focuses more on low-level features.
Types that have fixed size at compile time are more useful in Rust and can be optimized much better.
- amelius 10y agoI didn't mean dynamically sized integers. I meant at-compile-time-arbitrarily-sized-integers ;)
- pornel 10y agoAh, in that case I suppose it's blocked by lack of type parametrization with integers: https://github.com/rust-lang/rfcs/issues/1038 https://github.com/rust-lang/rfcs/issues/1038 https://github.com/ticki/rfcs/blob/pi-types/text/0000-pi-types.md https://github.com/ticki/rfcs/blob/pi-types/text/0000-pi-typ...
- p0nce 10y agoI implemented those for D: https://github.com/d-gamedev-team/gfm/blob/master/integers/gfm/integers/wideint.d https://github.com/d-gamedev-team/gfm/blob/master/integers/g... It's nothing special when you have adhoc templates.