1
0
mirror of https://github.com/golang/go synced 2024-11-17 05:54:46 -07:00
go/doc
Carlo Alberto Ferraris bc2e961cf4 reflect: deprecate (Slice|String)Header
As discussed in CL 401434 there are substantial misuses of these in the
wild, and they are a potential source of unsafety even for code that
does not use them directly.

We should either keep them as-is and document when/how they can be used
safely, or deprecate them so that uses will eventually die out.

After some discussion, it was decided to deprecate them outright.
Since the docs already mentioned that they may be unstable across
releases, it should be possible to get rid of them completely later on.

Change-Id: I3b75819409177b5a286c1e9861a2edb6fd1301b8
Reviewed-on: https://go-review.googlesource.com/c/go/+/401434
Auto-Submit: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
2022-05-18 15:15:29 +00:00
..
asm.html
go1.17_spec.html spec: fix a broken link 2021-11-11 19:44:13 +00:00
go1.19.html reflect: deprecate (Slice|String)Header 2022-05-18 15:15:29 +00:00
go_mem.html
go_spec.html spec: fix prose about promoted methods of embedded fields 2022-05-12 22:29:02 +00:00