Hacker News new | ask | show | jobs
by kazinator 1119 days ago
Why do I need to see machine-specific types like i32 in a lecture about closures?
1 comments

What is machine-specific about i32? It's a signed 32-bit integer, regardless of the machine you're on.
Why not use i36 then?
Because that's not a type in Rust. I don't understand where you're going with this.
Why isn't that a type in Rust? It's a signed 36 bit integer, regardless of the machine you are on.
There are several crates which provide this type if you want it, such as ux and num_x