kw escaping
Contextual keyword — function type (§5.7)
The list of words: §1.4
Syntax
AtomType = Path [ "<" TypeArgs ">" ] | "(" [ Type { "," Type } ] ")" | "[" Type [ ";" Expr ] "]"
| "&" [ "var" ] Type | "*" [ "var" ] Type | ( "frozen" | "sync" | "view" | "dyn" ) Type
| "fn" "(" [ Type { "," Type } ] ")" [ "->" Type ] [ Effects ] [ "escaping" ] | "never" ;Grammar: App. A
Defined in
- 1.4 Keywords — Reserved (cannot be used as names)
- 5.7 Lambdas and closures — .field and .method(args) in argument position are shorthand for a lambda with one parameter.