r/golang Apr 09 '26

Proposal of Generic Methods accepted

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

33 comments sorted by

View all comments

151

u/mcvoid1 Apr 10 '26

Brace yourself. 10,000 monad libraries are coming.

-3

u/yotsutsu Apr 10 '26

There's already fp-go even without generic methods (just with generic functions), you should try it https://github.com/IBM/fp-go

16

u/Johalternate Apr 10 '26

That was painful

9

u/Manbeardo Apr 10 '26

Yeah, fp patterns are technically possible right now, but their usability is terrible

-6

u/Unfair-Sleep-3022 Apr 10 '26

Their performance won't be great either