_content/tour/flowcontrol/defer.go: add example for arguments eager evaluation#284
_content/tour/flowcontrol/defer.go: add example for arguments eager evaluation#284Yuhao-C wants to merge 1 commit intogolang:masterfrom
Conversation
|
This PR (HEAD: 65ecbc1) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/website/+/588475. Important tips:
|
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/588475. |
|
Message from Gopher Robot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be Please don’t reply on this GitHub thread. Visit golang.org/cl/588475. |
|
Message from Yuhao Chen: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/588475. |
This adds an example in the provided code snippet
to demostrate and help user better understand the
eager evaluation of the deferred call's arguments.
Also fixes: golang/tour#1558