ch1-basic/ch1-04-func-method-interface #605
Replies: 3 comments 1 reply
-
在Go 1.22之后 loopvar 变成每个循环都重新生成了 1.4.1节的闭包对loopvar的引用部分需要重新改了 https://go.dev/wiki/LoopvarExperiment
的output在go1.22之后是2 1 0 |
Beta Was this translation helpful? Give feedback.
1 reply
-
1.4.1中第一句话,在 Go 语言中,函数是第一类对象,我们可以将函数保持到变量中。这里的保持是不是应该是保存,是不是字打错了,还是说我理解有误。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
您好,我将尽快回复您的邮件。如果您的邮件无需回复,则收到本回复表明我已收到您的邮件。请勿回复,谢谢合作。This is an automatic reply, confirming that your e-mail was received.Thank you.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
ch1-basic/ch1-04-func-method-interface
Go语言高级编程
https://chai2010.cn/advanced-go-programming-book/ch1-basic/ch1-04-func-method-interface.html
Beta Was this translation helpful? Give feedback.
All reactions