diff options
| author | Russ Cox <rsc@golang.org> | 2023-06-05 13:52:19 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2023-06-05 19:18:13 +0000 |
| commit | 26a90e4e36c01ae0d356d4e077b99c31cfcb4d1e (patch) | |
| tree | dda59b904da5ad1918468608d30d1b62247235ab | |
| parent | 5db1e99bbd84ef7530e11eabad8d3c2a62366e5c (diff) | |
| download | go-26a90e4e36c01ae0d356d4e077b99c31cfcb4d1e.tar.xz | |
doc/go1.21: document GOEXPERIMENT=loopvar and invite feedback
For #60078.
Change-Id: I92ab1fc2f30e6bbaabd8e3e1b8834e6ddff2414d
Reviewed-on: https://go-review.googlesource.com/c/go/+/500958
TryBot-Bypass: Russ Cox <rsc@golang.org>
Reviewed-by: David Chase <drchase@google.com>
| -rw-r--r-- | doc/go1.21.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/go1.21.html b/doc/go1.21.html index c6af33ac6d..f7ffc19117 100644 --- a/doc/go1.21.html +++ b/doc/go1.21.html @@ -145,10 +145,11 @@ Do not send CLs removing the interior tags from such phrases. <!-- https://go.dev/issue/57969 --> <p> - <!-- TODO(rsc): add GOEXPERIMENT=loopvar --> + Go 1.21 includes a preview of a language change we are considering for a future version of Go: + making for loop variables per-iteration instead of per-loop, to avoid accidental sharing bugs. + For details about how to try that language change, see <a href="https://go.dev/wiki/LoopvarExperiment">the LoopvarExperiment wiki page</a>. </p> - <p> TODO: complete this section </p> |
