[rust-dev] RFC: Ignore trailing semicolons

Patrick Walton pwalton at mozilla.com
Thu Aug 2 18:20:26 PDT 2012

There is another issue I forgot to mention, which is the match clause 

Currently, "match" (formerly "alt") clauses must either be separated by 
a closing brace '}' or a comma ','. We can't use '|' like ML because of 

So we have:

     match foo {
         'a' => 1,
         'b' => 2,
         'c' => 3

With semicolons this perhaps blends in better:

     match foo {
         'a' => 1;
         'b' => 2;
         'c' => 3;

But this would require semicolons to be ignorable, or else it doesn't 
fit in well with the rest of the language.


More information about the Rust-dev mailing list