Error Handling
Targo uses Go-style error handling, not exception-driven control flow.
Core model
- ordinary failure uses return values
- the common shape is
[T, error | null] - call sites check errors explicitly
panic()is reserved for exceptional situations
Migration advice
- redesign
try/catchcode into explicit result contracts - wrap or propagate errors intentionally
- do not replace everyday failures with
panic()