mirror of
https://github.com/golang/go
synced 2024-11-26 07:27:59 -07:00
doc: add Go 1.17 release note about inlining functions with closures
Fixes #45781 Change-Id: Ia5bc2845f7f94aff4f3f0ff15533feb148223adb Reviewed-on: https://go-review.googlesource.com/c/go/+/322089 Trust: Dan Scales <danscales@google.com> Reviewed-by: Cherry Mui <cherryyz@google.com>
This commit is contained in:
parent
8b462d7567
commit
f22ec51deb
@ -228,7 +228,14 @@ Do not send CLs removing the interior tags from such phrases.
|
||||
|
||||
<h2 id="compiler">Compiler</h2>
|
||||
|
||||
<p>
|
||||
<p><!-- CL 283112, golang.org/issue/28727 -->
|
||||
|
||||
Functions containing closures can now be inlined. One effect of this change is
|
||||
that a function with a closure may actually produce a distinct closure function
|
||||
for each place that the function is inlined. Hence, this change could reveal
|
||||
bugs where Go functions are compared (incorrectly) by pointer value. Go
|
||||
functions are by definition not comparable.
|
||||
|
||||
TODO: complete the Compiler section, or delete if not needed
|
||||
</p>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user