diff --git a/doc/go1.21.html b/doc/go1.21.html index 3758d282c3..075cee592a 100644 --- a/doc/go1.21.html +++ b/doc/go1.21.html @@ -25,13 +25,53 @@ Do not send CLs removing the interior tags from such phrases.

Changes to the language

-

- Go 1.21 adds two new built-ins to the language: - the new functions min and max compute the - smallest (or largest, for max) value of a fixed number - of given arguments. - See the language spec for details. + Go 1.21 adds three new built-ins to the language. + +

+

+ +

+ Package initialization order is now specified more precisely. The + new algorithm is: +

+ This may change the behavior of some programs that rely on a + specific initialization ordering that was not expressed by explicit + imports. The behavior of such programs was not well defined by the + spec in past releases. The new rule provides an unambiguous definition. +

+ +

+ TODO: https://go.dev/issue/59338: infer type arguments from assignments of generic functions (reverse type inference)

@@ -745,22 +785,6 @@ Do not send CLs removing the interior tags from such phrases. -

spec
-
-

- TODO: https://go.dev/issue/56351: add clear(x) builtin, to clear map, zero content of slice -

- -

- TODO: https://go.dev/issue/57411: define initialization order more precisely -

- -

- TODO: https://go.dev/issue/59338: infer type arguments from assignments of generic functions (reverse type inference) -

-
-
-
sync