Bindings and Scope
A let binding holds a value. A nested binding can shadow a name without changing the outer value.
let score = 20
{ let score = 42; printl(score) }
printl(score)
Expected output:
42
20
Run the example from a file with dewy example.dewy. Its exact output is checked by the website build on the native release target.
Design boundary. The Bindings and Scope reference specifies the complete language rules. A passing example covers this program only. See generated coverage for related acceptance programs and unmeasured areas.