On Thu, Dec 22, 2011 at 11:55 AM, Graydon Hoare <[email protected]> wrote:

> I'm curious how many of the people upset at the literal suffixes know the
> number-literal syntax permits inserting underscores, so you can write this
> as (say):
>
>  0x_00ab_cdef_i32
>
> Which is how I tend to write any suffixed literal that's not a very simple
> one (eg. 0u or such).
>

I definitely agree that explicitly typed literals are worth the pain to
adapt to. I would suggest trying suffixes that don't have digits in them,
maybe 'b'yte 's'hort 'i'nt 'l'ong instead of 'i8' 'i16' 'i32' 'i64' (except
'b' is a hex digit, so, I dunno). Underscores are a great bit of sugar, but
you shouldn't feel like you absolutely have to use them every time you use
a suffix, and there'll always be that one jerk on your team who runs their
literals together without the separator.

-Joe
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to