| ▲ | usrnm an hour ago | |||||||
But not having fixed size integers (or integers tied to the size of a pointer) was. Both can be useful | ||||||||
| ▲ | tialaramex 7 minutes ago | parent | next [-] | |||||||
It turns out that you don't want integers the same size as a pointer because somebody might squirrel away capability bits in your pointer type (see CHERI) and you definitely do not want integers with capability bits. Rust originally says that its types usize and isize are the same size as pointers, but this was ret-conned in later Rust to say actually they're the same size as addresses for this reason. | ||||||||
| ▲ | an hour ago | parent | prev | next [-] | |||||||
| [deleted] | ||||||||
| ▲ | quelsolaar 43 minutes ago | parent | prev [-] | |||||||
At the time its was probably very hard to know what the fixed sizes should be. | ||||||||
| ||||||||