[rust-dev] Fwd: minor things that annoy you about Rust?

Jeff Schultz jws at csse.unimelb.edu.au
Thu Dec 22 18:01:36 PST 2011

On Thu, Dec 22, 2011 at 11:55:11AM -0800, Graydon Hoare 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 expect that for every 0x_00ab_cdef_i32, there will be many
0x00abcdefi32, and I, for one, will find it difficult to notice the
i32 suffix.  Perhaps an '_' should be required.  I.e. 0x00abcdef_i32
would be a valid literal and 0x00abcdefi32 would not.

    Jeff Schultz

More information about the Rust-dev mailing list