On 10/22/12 9:08 AM, Graydon Hoare wrote:
I suggest allowing char literals when matching on an integer (or when
otherwise comparing to an integer or when assigning to an integer
variable) as long as the Unicode code point of the character
represented by the character literal is not greater than the largest
integer representable by the integer type.
Interesting possibility. As in: add char literals to the set of types to
which integer-type inference applies?
Seems to me that might be confusing. "match c as char" seems clearer.
Just IMHO, of course.
Patrick
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev