mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-28 19:31:34 +00:00
docs: add note about type aliases and generics support
Part of #3023. Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
This commit is contained in:
parent
35c3b65c8a
commit
66a80017d3
1 changed files with 2 additions and 0 deletions
|
@ -31,6 +31,8 @@ a dialect of Go rather than a complete port of the language:
|
||||||
* type assertion with two return values is not supported; single return value (of the desired type)
|
* type assertion with two return values is not supported; single return value (of the desired type)
|
||||||
is supported; type assertion panics if value can't be asserted to the desired type, therefore
|
is supported; type assertion panics if value can't be asserted to the desired type, therefore
|
||||||
it's up to the programmer whether assert can be performed successfully.
|
it's up to the programmer whether assert can be performed successfully.
|
||||||
|
* type aliases including the built-in `any` alias are supported.
|
||||||
|
* generics are not supported, but eventually will be (at least, partially), ref. https://github.com/nspcc-dev/neo-go/issues/2376.
|
||||||
|
|
||||||
## 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
|
||||||
|
|
Loading…
Reference in a new issue