Language
result block
Flatten a sequence of Result-producing operations without nested callbacks.
example.tt
const view = result {
const user = try getUser(id);
const company = try getCompany(user.companyId);
return { user, company };
};Features
- Each direct try unwraps Ok and completes the block with Err on failure.
- Bindings stay in scope for later statements.
- An explicit return completes the block with Ok; different error types combine as a union.