On Thu, Aug 2, 2012 at 10:03 AM, Niko Matsakis <[email protected]> wrote: > > These all have unit (or bottom) return type. We could require semicolons > after these. At least you would not then be able to write: > > if cond { return } > > but rather > > if cond { return; } > > and not > > fn foo() -> int { return 22 } > > but rather > > fn foo() -> int { return 22; }
I like this. I think all of my returns have a semicolon, whether or not they actually need them. What about for fail? Is there a good example of using fail as an expression? _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
