Syntax pick 8: Contracts

requires / ensures lines come directly after the signature line, then a blank line, then the body, all inside the fn ... end. Lines above the blank line are spec altitude. result names the return value, old(x) the entry value, is does an inline pattern test (result is Ok(c) implies c.refunded?).