Defers evaluation of expression
(the body) until control leaves the enclosing block expression. Multiple defer
statements are evaluated in reverse lexical order.
defer
statements are typically used to reliably clean up resources regardless of how control leaves a block expression.
Evaluates expression
(the value). If the expression statement is the final statement of the enclosing block expression, the value becomes the result of the block expression.
Evaluates (the initializer) and matches it against . If the match fails, a panic occurs.
Any in pattern
are available for the remainder of the enclosing . Any bindings in pattern
that existed prior to the let
statement are shadowed for the remainder of the enclosing block expression.