Skip to content
Snippets Groups Projects
Commit f3ae1356 authored by Robert Griesemer's avatar Robert Griesemer Committed by Gopher Robot
Browse files

doc: document GOEXPERIMENT=aliastypeparams in release notes

For #65614.

Change-Id: I05b20a80b1163e1d3927c2f763ef6b7d20e6a937
Reviewed-on: https://go-review.googlesource.com/c/go/+/590617


Reviewed-by: default avatarRobert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
TryBot-Bypass: Robert Griesemer <gri@google.com>
Reviewed-by: default avatarIan Lance Taylor <iant@google.com>
Reviewed-by: default avatarDmitri Shuralyov <dmitshur@golang.org>
parent 7a072fc2
Branches
Tags
No related merge requests found
...@@ -11,3 +11,7 @@ The "range" clause in a "for-range" loop now accepts iterator functions of the f ...@@ -11,3 +11,7 @@ The "range" clause in a "for-range" loop now accepts iterator functions of the f
as range expressions. as range expressions.
Calls of the iterator argument function produce the iteration values for the "for-range" loop. 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). For details see the [language spec](https://tip.golang.org/ref/spec#For_statements).
<!-- go.dev/issue/46477, CL 566856, CL 586955, CL 586956 -->
Go 1.23 includes preview support for [generic type aliases](/issue/46477).
Building the toolchain with `GOEXPERIMENT=aliastypeparams` enables this feature.
<!-- TODO: https://go.dev/issue/46477#issuecomment-2101270785 says: <!-- see ../../../../2-language.md -->
\ No newline at end of file
> In the meantime, we believe it makes sense to go forward with the Alias API changes
> proposed in #67143 for 1.23, even though type parameters won't be allowed during type
> checking. This lets work commence on parameterized alias support in tools.
relevant CLs:
https://go.dev/cl/566856 ("go/types, types2: initial support for parameterized type aliases")
https://go.dev/cl/586955 ("internal/goexperiment: add aliastypeparams GOEXPERIMENT flag")
https://go.dev/cl/586956 ("go/types, types2: use GOEXPERIMENT to enable alias type parameters")
-->
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment