Skip to content
Discussion options

You must be logged in to vote

https://ziglang.org/download/0.14.0/release-notes.html#Decl-Literals

这是 0.14 引入的语法,叫 decl literals,可以翻译成“声明字面量”,它能够根据上下文的环境自动推导出所属的作用域,官方叫:Result Location Semantics

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@yellowzq
Comment options

Answer selected by yellowzq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants