Skip to content

Chapter 4 — Errors ​

Auto's error model is Rust's error model: Result, the ? operator, explicit propagation. The spelling differs slightly; the semantics are identical.

Dev→Ship
Auto source
Rust (a2r output)
Click "Transpile to Rust" to see the transpiled code.
VM output
No output yet
A !int function (Result) with .? propagation

Released under the MIT License.