On 26 November 2010 01:19, Graydon Hoare <[email protected]> wrote:
> I think Igor's argument is merely one of brevity: by analogy to || and &&,
> it's "very terse" sugar for a short conditional structure you wind up
> writing a lot, not a general solution to general conditionals.
Yes - you wrote my argument better than myself :)
I still personally prefer option 1 with extra sugar in form of of the
ternary. It and && || should allow to avoid using the explicit {}
block in many useful cases. When it will be used the explicitness and
verboseness of the code would alert the reader about complexity.
My second preference is for the option 4. As long as an extra
semicolon is not an error it should not pose any bad compilation
experience.
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev