Y
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
proto_lambda
1119 days ago
What is machine-specific about i32? It's a signed 32-bit integer, regardless of the machine you're on.
link
kazinator
1119 days ago
Why not use i36 then?
link
proto_lambda
1119 days ago
Because that's not a type in Rust. I don't understand where you're going with this.
link
kazinator
1119 days ago
Why isn't that a type in Rust? It's a signed 36 bit integer, regardless of the machine you are on.
link
tialaramex
1119 days ago
There are several crates which provide this type if you want it, such as ux and num_x
link