Language
let-else
Extract a pattern or leave through a diverging else block.
example.tt
const Some(value: user) = findUser(id) else {
return Result.Err("not found");
};Features
- Aliases, empty bindings, and or-patterns with identical bindings.
- else may diverge through return, throw, break, or continue.
- Control-flow analysis accepts fully diverging if/else chains and nested blocks.