]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.18: document type parameter name restriction
authorRobert Griesemer <gri@golang.org>
Fri, 7 Jan 2022 18:06:53 +0000 (10:06 -0800)
committerRobert Griesemer <gri@golang.org>
Fri, 7 Jan 2022 18:20:24 +0000 (18:20 +0000)
For #47694.

Change-Id: I00862f987a0ff9f71e0295ce4320e6f9a6a4332f
Reviewed-on: https://go-review.googlesource.com/c/go/+/376414
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
doc/go1.18.html

index 06a75643fcf95b0fdd87a9d1f8a3a812cd0fa401..03d2b4e346cd83ee75ceed01e96d5e855dd423e7 100644 (file)
@@ -108,6 +108,12 @@ Do not send CLs removing the interior tags from such phrases.
       interface type with a non-empty method set. Whether this will
       ever be permitted is unclear at present.
     </li>
+    <li><!-- https://golang.org/issue/50481 -->
+      A generic type or function currently may declare at most one blank (<code>_</code>)
+      type parameter name. Note that it is always possible to use an arbitrary new
+      (unused) identifier in place of a blank type parameter name.
+      We plan to remove this restriction in Go 1.19.
+    </li>
   </ul>
 </p>