> I may have missed it, but is there a reason not to have just that? Make > let similar to Erlang’s `=` and fail on refutation?
Erlang is designed around handling failure. It has links, monitors, supervisors, and so forth. Rust has only some very basic tools for catching the failure of a task. I'll also note, that because Erlang has pattern matching in the clauses themselves, many failures occur even before the function bodies. Some of those features incur non-trivial runtime costs which is why Rust doesn't have them. jack. _______________________________________________ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev