Also, because you have the type information in the variable, there's no
need to redundantly include it by making it an unsigned number literal—rust
can infer that information.

On Mon, Nov 3, 2014 at 3:25 PM, Evan G <[email protected]> wrote:

> Not consistent with what? The syntax for number literals is taken directly
> from C/C++, and is used by many other languages.
>
> On Mon, Nov 3, 2014 at 3:19 PM, Jake Scott <[email protected]> wrote:
>
>> I was trying to declare a uint using this:
>> let a: uint = 0_uint;
>>
>> But the correct way to declare it is:
>> let a: uint = 0u;
>>
>> Anyone else think that's not consistent?
>>
>>
>>
>>
>> _______________________________________________
>> Rust-dev mailing list
>> [email protected]
>> https://mail.mozilla.org/listinfo/rust-dev
>>
>>
>
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to