[rust-dev] Brace-free if and alt
graydon at mozilla.com
Wed Apr 11 14:15:15 PDT 2012
On 12-04-11 01:28 PM, Patrick Walton wrote:
> Before: https://github.com/Jonanin/rust-dcpu16/blob/master/asm.rs
> After: https://gist.github.com/2360838
Aesthetically, I prefer the braces. Block structure's more visible.
I also use C-M-space to move code around all the time, so practically
speaking, editor-obvious block boundaries are my preference.
Take that for no more than it's worth though. Straw-vote preference.
I've written a lot of ML that looks like your proposal too, and my
fingers didn't break.
More information about the Rust-dev