]> Cypherpunks repositories - gostls13.git/commitdiff
doc/next: document new language feature (alias type parameters)
authorRobert Griesemer <gri@golang.org>
Wed, 27 Nov 2024 02:02:56 +0000 (18:02 -0800)
committerGopher Robot <gobot@golang.org>
Wed, 27 Nov 2024 04:05:48 +0000 (04:05 +0000)
For #46477.
For #68545.

Change-Id: I54a36f24167a1f909a865f8f6cf416d7378faa4e
Reviewed-on: https://go-review.googlesource.com/c/go/+/632055
Reviewed-by: Robert Griesemer <gri@google.com>
TryBot-Bypass: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
doc/next/2-language.md

index 61030bd67606b037e083f01d21daed91c36f43b9..8d09a7132368a895287b52bcb3a0c853a11507fd 100644 (file)
@@ -1,3 +1,7 @@
 ## Changes to the language {#language}
 
-
+Go 1.24 now fully supports [generic type aliases](/issue/46477): a type alias
+may be parameterized like a defined type.
+See the [language spec](/ref/spec#Alias_declarations) for details.
+For now, the feature can be disabled by setting `GOEXPERIMENT=noaliastypeparams`;
+but the `aliastypeparams` setting will be removed for Go 1.25.