kw defer
Reserved keyword
The list of words: §1.4
Syntax
Stmt = ( "let" | "var" ) Pattern [ ":" Type ] "=" Expr | Const | Place AssignOp Expr
| "defer" Expr | Expr ;Grammar: App. A
Defined in
- 4.3 Construction and constructors — Literal. T{ f1: e1, f2, ..base }
- 5.8 Other expressions — defer e — executes e on leaving the block (including on fail, return, cancellation), in the reverse order of declaration.
- 6.6 Panic — Causes: overflow, division by zero, out-of-bounds access, x!
- 8.1 Execution model — The unit of execution is the task
- 8.6 Cancellation and deadlines — Cancellation is cooperative
- 1.4 Keywords — Reserved (cannot be used as names)
Related diagnostics
bad-init, missing-field, must-close, positional-literal, sealed-literal, blocking-in-task