From 3dbc9bb5dc2b55964d4f19aa7d679208a7ef712b Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Thu, 2 Dec 2021 22:35:42 +0300 Subject: [PATCH] docs: add a note on defer limitations --- docs/compiler.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/compiler.md b/docs/compiler.md index b53a92a65..3dc2d52b7 100644 --- a/docs/compiler.md +++ b/docs/compiler.md @@ -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