Skip to content

x/exp/rand: isolate into nested module, tag, delete #73963

Open
@dmitshur

Description

@dmitshur

This issue tracks a remaining subset of the accepted proposal #61716. Specifically:

Once math/rand/v2 has shipped, we would tag and delete x/exp/rand. This would keep programs that already use x/exp/rand working (by reference to the tagged version or older versions of x/exp) but allow us to delete the code from the main branch of x/exp, making clear that development on it has ended.

math/rand/v2 shipped in Go 1.22, so by now it's available in all supported versions of Go. The golang.org/x/exp/rand package was already marked deprecated (issue #71373, CL 644475). As described in #60557 (comment), all that's left is:

  • isolate it out into a nested module
  • tag it as v0.1.0-deprecated (tag name would be rand/v0.1.0-deprecated)
  • delete it from the main branch of x/exp

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions