[rust-dev] RFC about int, uint, and 16-bit CPUs

Uther uther.ii at gmail.com
Sat Jul 12 03:43:58 PDT 2014


I think this is great.

Pointer sized integer normal use is array indexing and should be labeled 
as such. "int" make think wrongly, this is the natural type for integer 
computation.

Le 12/07/2014 07:11, Jerry Morrison a écrit :
>
> Both Issue #14758 
> <https://github.com/rust-lang/rust/issues/14758> (Specify that int and 
> uint are at least 32 bits on every CPU architecture) and Issue #9940 
> <https://github.com/rust-lang/rust/issues/9940> (rename `int` and 
> `uint` to `intptr`/`uintptr`) call for RFCs.
>
> So RFC https://github.com/rust-lang/rfcs/pull/161 summarizes those 
> discussions, explains the core issue of code portability to CPUs with 
> smaller address spaces, conceptions and misconceptions about int/uint, 
> what's a "default" integer type, and proposals including coding style 
> for integer sizing.
>
> Let me know what you think.
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/rust-dev/attachments/20140712/a03eaa5c/attachment.html>


More information about the Rust-dev mailing list