Why wouldn't that fit in?  I'm missing something here.


On Thu, Aug 2, 2012 at 6:20 PM, Patrick Walton <[email protected]> wrote:
> There is another issue I forgot to mention, which is the match clause
> separator.
>
> Currently, "match" (formerly "alt") clauses must either be separated by a
> closing brace '}' or a comma ','. We can't use '|' like ML because of
> bitwise-or.
>
> 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.
>
>
> Patrick
> _______________________________________________
> Rust-dev mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/rust-dev
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to