by ben0x539 · 12y ago · 0 comments
match { let f = fopen(); fwrite("aha", f); fclose(f); } {
Err(e) => println("either of fopen, fwrite or fclose failed"),
_ => ()
}
without something like a try! variant that breaks out of a block instead of returning from a function on error.