docs: add a note on defer limitations

This commit is contained in:
Roman Khimov 2021-12-02 22:35:42 +03:00
parent 6000c6a502
commit 3dbc9bb5dc

View file

@ -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