docs: update compiler.md

This commit is contained in:
Evgenii Stratonikov 2020-08-24 09:53:52 +03:00
parent 5d82b82efb
commit f2d49cd1d6

View file

@ -19,11 +19,11 @@ a dialect of Go rather than a complete port of the language:
* goroutines, channels and garbage collection are not supported and will * goroutines, channels and garbage collection are not supported and will
never be because emulating that aspects of Go runtime on top of Neo VM is never be because emulating that aspects of Go runtime on top of Neo VM is
close to impossible close to impossible
* even though `panic()` is supported, `recover()` is not, `panic` shuts the * `defer` and `recover` are supported except for cases where panic occurs in
VM down `return` statement, because this complicates implementation and imposes runtime
* lambdas are not supported (#939) overhead for all contracts. This can easily be mitigated by first storing values
* it's not possible to rename imported interop packages, they won't work this in variables and returning the result.
way (#397, #913) * lambdas are supported, but closures are not.
## VM API (interop layer) ## VM API (interop layer)
Compiler translates interop function calls into NEO VM syscalls or (for custom Compiler translates interop function calls into NEO VM syscalls or (for custom