On 04/19/2013 11:57 AM, John Clements wrote:
This program illustrates a small but irritating inconsistency between
tuple-shaped enum variants and tuple-shaped structs:
// trailing comma allowed here:
struct F1(int,int,);
struct F2(int,int);
// trailing comma disallowed here:
/*enum G1 {
H1(int,int,)
}*/
enum G2 {
H2(int,int)
}
In structs, there can be a trailing comma after the types. In enums, there cannot be. I feel strongly that these should be the same, though I don't care which one it is.
Anyone?
John
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev
I guess the comma should be allowed to be consistent with tuples and
vectors.
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev