Generic data types in std library (after 1.18)

What changes have been made to the standard library after the 1.18 release? I would expect there to be lots of new generic data types, like sets, queues, stacks, lists etc?

Does anyone have a good links describing these changes?

None of the chances in the stdlib include new generics code AFIAK. Instead, new generics-aware packages are currently in experimental status, available as golang.org/x/exp/... packages:

golang.org/x/exp/constraints

golang.org/x/exp/slices

golang.org/x/exp/maps

The Go 1.18 Release Notes explain why.

2 Likes

Thanks, I will check the links out…

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.