On Thursday 22 February 2024 at 10:19:58 UTC+1 Jan Mercl wrote:

On Thu, Feb 22, 2024 at 10:06 AM 'Carla Pfaff' via golang-nuts 
<golan...@googlegroups.com> wrote: 

> This omission is notable considering "any" is among the most frequently 
used constraints in writing generic code. 

Interesting to know, I'd naively guess the opposite. Can you please 
share the source data set? Thank you.


In the standard library, the most notable packages that add generic 
functions are slices <https://pkg.go.dev/slices> and maps 
<https://pkg.go.dev/maps>. Almost all of their functions feature an 'any' 
constraint. Same for other generic additions to the standard library such 
as atomic.Pointer, reflect.TypeFor, and sync.OnceValue.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/7e0656cf-876c-4a82-9760-40923261d722n%40googlegroups.com.

Reply via email to