From 1540239f48f6beaa1cae6b34d00d74860366da7d Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 14 Dec 2021 13:27:57 -0800 Subject: [PATCH] doc/go1.18: add caution about use of generics in production Per https://groups.google.com/g/golang-dev/c/iuB22_G9Kbo/m/7B1jd1I3BQAJ. For #47694 Change-Id: I033cdadb2067e432f7c307d1546b4c5d0cfd5d8c Reviewed-on: https://go-review.googlesource.com/c/go/+/371954 Trust: Ian Lance Taylor Reviewed-by: Robert Griesemer --- doc/go1.18.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/doc/go1.18.html b/doc/go1.18.html index e156f21eb2..64481a1466 100644 --- a/doc/go1.18.html +++ b/doc/go1.18.html @@ -32,10 +32,25 @@ Do not send CLs removing the interior tags from such phrases. Type Parameters Proposal. This includes major - but fully backward-compatible - changes to the language. +

+ +

+ These new language changes required a large amount of new code that + has not had significant testing in production settings. That will + only happen as more people write and use generic code. We believe + that this feature is well implemented and high quality. However, + unlike most aspects of Go, we can't back up that belief with real + world experience. Therefore, while we encourage the use of generics + where it makes sense, please use appropriate caution when deploying + generic code in production. +

+ +

The following is a list of the most visible changes. For a more comprehensive overview, see the proposal. For details see the language spec.

+
  • The syntax for -- 2.50.0