docs: add a note on defer limitations
This commit is contained in:
parent
6000c6a502
commit
3dbc9bb5dc
1 changed files with 2 additions and 1 deletions
|
@ -22,7 +22,8 @@ a dialect of Go rather than a complete port of the language:
|
|||
* `defer` and `recover` are supported except for cases where panic occurs in
|
||||
`return` statement, because this complicates implementation and imposes runtime
|
||||
overhead for all contracts. This can easily be mitigated by first storing values
|
||||
in variables and returning the result.
|
||||
in variables and returning the result. `defer` can't be used in
|
||||
conditional code (#2293).
|
||||
* lambdas are supported, but closures are not.
|
||||
* maps are supported, but valid map keys are booleans, integers and strings with length <= 64
|
||||
|
||||
|
|
Loading…
Reference in a new issue