Hi Andres, If I can provide some feedback here, I see what you're going for, but at the same time using a library like this would defeat the point of using Go in the first place. Not only is it not idiomatic Go, but it adds an unnecessary level of complexity and abstraction to any codebase that consumes it. Applying an automatic decrease in efficiency and performance as well, right off the bat. Not good.
I would recommend to just use what's available in Go already, if you want to use Python, use Python, but if you want to use Go, use Go the way Go is intended to be used. Don't overthink it, the more you try to make Go like other languages you may have experience with is only holding you back from learning how to use Go. This ultimately applies to any new language you learn as well. As an FYI, here's a great set of examples from the GO WIKI on GIT on how to use slices efficiently: https://github.com/golang/go/wiki/SliceTricks I'd imagine you learned something whilst writing this library, which is always great, but I would encourage you to rethink why you think you need it in the first place. Have a great one! -Jason On Wednesday, August 31, 2022 at 11:43:59 AM UTC-4 andres...@rappi.com wrote: > Hi ! > A few days ago I wrote about a library that will use the power of generics > in go ˆ1.18 to emulate the most common and practical Python methods, such > as handling lists, dictionaries, heaps, etc. I put forward a bit of code > for the slices and recreate in a generic way the handling of lists that we > have with python. > Some next steps are to recreate the Heapify library > https://docs.python.org/3/library/heapq.html , dictionary methods and > support set operations (w3schools.com/python/python_sets.asp). > If anyone would be interested in joining with code or feedback, you all > are more than welcome. > Link to repo is : https://github.com/abaron10/Gothon > Thanks! -- 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/adc3e35a-4644-4d2f-b3ac-8dec305aefdcn%40googlegroups.com.