On 8/2/12 9:52 AM, Glenn Willen wrote:
But now that I see that the new syntax is effectively the same one
Perl uses, I'm not super worried about it, as long as we adopt the same
house style that Perl programmers use: The semicolon is _always_
present, except in cases where it's too ugly (which is to say, one-liners.)

(We could also adopt a house style of leaving it in where the value
is
ignored, and taking it out where the value is used; but if we did that
we might as well not change the syntax. ;-)

I like the idea of having the trailing semicolon be our house style, except in the case of one-liners. I could rig up the pretty-printer to do that.

Ultimately I think this comes down to the fact that we're bridging two worlds: we're trying to cater to the functional programming world, which is used to semicolon as a statement separator, and the C/C++ world, which is used to putting a semicolon at the end of every block.

Patrick

_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to