Repository navigation
Sword 0.3.2 — Quench
2026-10-30. A patch to Quench that adds one form: a struct literal can leave
its optional fields empty without naming each one.
What changes for existing programs
Nothing that compiled stops compiling or behaves differently. A new form in a
patch goes past what semantic versioning allows; it ships here because it only
adds what was refused before.
Added
- A struct literal ending in
else nilgives every optional field it does not
name the valuenil:Request{path: "/", else nil}. A literal that names no
field is writtenT{nil}. A field that is not optional still has to be
named, so adding one to a struct still stops every literal that forgot it. - A literal missing only optional fields gets a note saying how to write it.