Pattern Matching
Decisions Stay Visible
Rank keeps branching logic out in the open. Inputs are explicit, matches are readable, and the same program produces the same result.match mode { `dev` => `development`, `prod` => `production` }
Parsing
Structured Text, Typed Fields
Version strings, paths, and other structured text can be described once and pulled apart safely instead of being handled as loose strings.parse`{major:number}-{minor:number}-{patch:number}`
Constraints
Catch Bad Config Early
Simple rules can live next to the values they protect, so invalid ports, counts, and shapes fail during checking instead of later in runtime.@constraint(cond: |self| self >= 1 && self <= 65535)