Comment on A guide to closures in RustComments−kazinator3yWhy do I need to see machine-specific types like i32 in a lecture about closures?−proto_lambda3yWhat is machine-specific about i32? It's a signed 32-bit integer, regardless of the machine you're on.−kazinator3yWhy not use i36 then?−proto_lambda3yBecause that's not a type in Rust. I don't understand where you're going with this.−kazinator3yWhy isn't that a type in Rust? It's a signed 36 bit integer, regardless of the machine you are on.−tialaramex3yThere are several crates which provide this type if you want it, such as ux and num_x
Comments
Why do I need to see machine-specific types like i32 in a lecture about closures?
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