benbjohnson/immutable

Generics?

burdiyan opened this issue · 2 comments

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?

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.

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