From: Dan Scales Date: Sat, 22 May 2021 20:40:20 +0000 (-0700) Subject: doc: add Go 1.17 release note about inlining functions with closures X-Git-Tag: go1.17beta1~99 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=f22ec51debeddc0903096e66bfaf641568bede3b;p=gostls13.git 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 Reviewed-by: Cherry Mui --- diff --git a/doc/go1.17.html b/doc/go1.17.html index 6dd1d0d1db..c2317a4035 100644 --- a/doc/go1.17.html +++ b/doc/go1.17.html @@ -228,7 +228,14 @@ Do not send CLs removing the interior tags from such phrases.

Compiler

-

+

+ + 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