From: Robert Griesemer Date: Tue, 4 Jun 2024 23:29:30 +0000 (-0700) Subject: doc: document GOEXPERIMENT=aliastypeparams in release notes X-Git-Tag: go1.23rc1~81 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=f3ae135604ef03886d6ebbc2ede2d4d58d175b49;p=gostls13.git doc: document GOEXPERIMENT=aliastypeparams in release notes For #65614. Change-Id: I05b20a80b1163e1d3927c2f763ef6b7d20e6a937 Reviewed-on: https://go-review.googlesource.com/c/go/+/590617 Reviewed-by: Robert Griesemer Auto-Submit: Robert Griesemer TryBot-Bypass: Robert Griesemer Reviewed-by: Ian Lance Taylor Reviewed-by: Dmitri Shuralyov --- diff --git a/doc/next/2-language.md b/doc/next/2-language.md index e45874b954..db5d83a73e 100644 --- a/doc/next/2-language.md +++ b/doc/next/2-language.md @@ -11,3 +11,7 @@ The "range" clause in a "for-range" loop now accepts iterator functions of the f as range expressions. Calls of the iterator argument function produce the iteration values for the "for-range" loop. For details see the [language spec](https://tip.golang.org/ref/spec#For_statements). + + +Go 1.23 includes preview support for [generic type aliases](/issue/46477). +Building the toolchain with `GOEXPERIMENT=aliastypeparams` enables this feature. diff --git a/doc/next/6-stdlib/99-minor/go/types/46477.md b/doc/next/6-stdlib/99-minor/go/types/46477.md index b0a2d21b15..7f744dc6ae 100644 --- a/doc/next/6-stdlib/99-minor/go/types/46477.md +++ b/doc/next/6-stdlib/99-minor/go/types/46477.md @@ -1,13 +1 @@ - + \ No newline at end of file