]> Cypherpunks.ru repositories - gostls13.git/blobdiff - doc/go1.21.html
doc/go1.21: document GOEXPERIMENT=loopvar and invite feedback
[gostls13.git] / doc / go1.21.html
index c6af33ac6ddc47993c490fa3ac493951c0a61854..f7ffc19117152fe6d6b5b0c331406d00efa138a9 100644 (file)
@@ -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>