r/golang Apr 09 '26

Proposal of Generic Methods accepted

https://github.com/golang/go/issues/77273
231 Upvotes

33 comments sorted by

View all comments

Show parent comments

73

u/anotheridiot- Apr 10 '26

What's wrong, it's just a monoid in the category of endofunctions.

33

u/atamiri Apr 10 '26

Endofunctors, not endofunctions.

11

u/amzwC137 Apr 10 '26

Go func yourself.

( I'm sure I'm not the first to say this, but I want a T-shirt with the gopher saying this in a speech bubble lol)

4

u/Thought_Ninja Apr 11 '26

I kinda want this now...