Type-based generally is all that I ever seem to want...making a macro-like LLRB heap concrete to handle objects of my own type and with my own comparison function. I believe this is what Rob speaks of. I've personally never needed to sort or order a bunch of unknown "things"
On Fri, Mar 24, 2017 at 12:16 PM Rob Pike <r...@golang.org> wrote: > Algorithms are not helped by generic types as much as by polymorphism, a > related but distinct subject. > > -rob > > > On Fri, Mar 24, 2017 at 12:10 PM, Mandolyte <cecil....@gmail.com> wrote: > > The recent survey reveled that generics was thing that would improve Go > the most. But at 16%, the responses were rather spread out and only 1/3 > seemed to think that Go needed any improvement at all - see link #1. I > think most will concede that generics would help development of algorithms, > libraries, and frameworks. So in the spirit of friendly rivalry, here is a > list of algorithms developed for Swift: > > https://github.com/raywenderlich/swift-algorithm-club > > As you might guess, it is chock-full of generics. Yeah, I'm a little > envious. :-) enjoy... > > > > #1 https://blog.golang.org/survey2016-results > > -- > 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. > For more options, visit https://groups.google.com/d/optout. > > > -- > 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. > For more options, visit https://groups.google.com/d/optout. > -- Michael T. Jones michael.jo...@gmail.com -- 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. For more options, visit https://groups.google.com/d/optout.