Indeed. I'm working on a boolean logic package that has a number of different bitfield oriented backends, all of which will have a lot of very needlessly repetitive code without generics. If generics weren't coming "soon" I'd consider writing a generator to build it, but generics are the much more elegant solution. This is absolutely a real-world problem that I am having, right now, in the real world.
- Dave > On Dec 24, 2020, at 5:20 AM, 'Dan Kortschak' via golang-nuts > <golang-nuts@googlegroups.com> wrote: > > I agree. > > A lot of Gonum code would be greatly simplified with the availability > of generics, particularly the linear algebra part. The graph packages > would be richer and we could do more things with tensor-like > operations. -- 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/D9FC4D9B-BB55-4AA8-A9D5-6238E0C1FF84%40gmail.com.