Skip to content

Commit febbef5

Browse files
committed
doc: mention generics in release notes
Also mention local types restriction. We probably want to say more at some point, this is just a placeholder to start. Update #47631 Change-Id: I828e451e1e8504d21cb55c7132e9cb330b160a54 Reviewed-on: https://go-review.googlesource.com/c/go/+/364134 Trust: Keith Randall <[email protected]> Reviewed-by: Robert Griesemer <[email protected]>
1 parent fdd6793 commit febbef5

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

doc/go1.18.html

+18
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,24 @@ <h2 id="language">Changes to the language</h2>
2929
TODO: complete this section
3030
</p>
3131

32+
<h3 id="generics">Generics</h3>
33+
34+
<p>
35+
Go 1.18 includes an implementation of generics as described
36+
by <a href="https://go.googlesource.com/proposal/+/refs/heads/master/design/43651-type-parameters.md">the
37+
proposal</a>.
38+
</p>
39+
40+
<p>
41+
The current generics implementation has the following limitations:
42+
<ul>
43+
<li><!-- issue 47631 -->
44+
The Go compiler cannot currently handle type declarations inside generic functions
45+
or methods. We hope to provide support for this feature in Go 1.19.
46+
</li>
47+
</ul>
48+
</p>
49+
3250
<h2 id="ports">Ports</h2>
3351

3452
<h3 id="freebsd">FreeBSD</h3>

0 commit comments

Comments
 (0)