3 ms·
Rust uses the Erlang model. Generally failing the task on error has worked well in practice, although there are times when we have to use result types and patte
by pcwalton 14y ago
Rust uses the Erlang model. Generally failing the task on error has worked well in practice, although there are times when we have to use result types and pattern matching (basically error codes, but more reliable since the compiler forces you to use them correctly). The vast majority of errors are handled either locally or by failing the task.