benbjohnson / immutable

Immutable collections for Go
MIT License
713 stars 32 forks source link

Generics? #22

Closed burdiyan closed 1 year ago

burdiyan commented 2 years ago

I wonder if this library is willing to adopt Go generics, and whether or not it's aiming to be actively maintained in the future? I'm interested in having immutable data structures for a project I'm working on, and I'm thinking about converting this code to use generics. Shall I contribute this back, if I actually end up doing the fork?

benbjohnson commented 2 years ago

Hi @burdiyan. Yes, generics is something I want to add to this library and I'm open to accepting the changes if you want to contribute back. This repo is maintained although it's mostly "just worked" so I haven't had to do much maintenance. I've used it on a couple large production projects so it's been put through its paces. Generics have been the one feature I really wanted to see added since it'll help with memory allocation quite a bit in some cases.

burdiyan commented 1 year ago

I guess this is not relevant anymore as it was implemented already.