On Aug 1, 2012, at 8:47 PM, Patrick Walton wrote: > > Actually, the only parser change was to throw away semicolons before the end > of the block. > > To be more concrete, the rules are: > > 1. The last expression is the value of the block, regardless of whether > there's a semicolon after it. (This seems like a simplification to me.)
But blocks are now allowed to discard their values, where previously this was
forbidden? That is, before, it was an error to say:
fn foo() {
5
}
But now it will be allowed? (I notice that in your first email you said that
return values could already be ignored -- is my compiler just out of date on
this question?)
Glenn
PGP.sig
Description: This is a digitally signed message part
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
