I wouldn't say it's "some spec somewhere"; every issue, documentation, and RFC I've found so far is unambiguous about usize
being pointer sized. This includes the RFC that renamed int
and uint
to isize
and usize
.
- The names fail to indicate the precise semantics of the types - pointer-sized integers . (And they don't follow the
i32/u32
pattern as faithfully as possible, as32
indicates the exact size of the types, butsize
inisize/usize
is vague in this aspect.)- The names favour some of the types' use cases over the others.
- The names remind people of C's
ssize_t/size_t
, butisize/usize
don't share the exact same semantics with the C types.
Size being in the name was just bike-shedding.