@Matthias I don’t mention it in my post but I think that’d be fine, e.g.:
type Set(type T comparable) []T type OrderedSlice(type T orderable) []T On Tuesday, September 4, 2018 at 3:52:50 PM UTC-4, Matthias B. wrote: > > On Tue, 4 Sep 2018 11:57:02 -0700 (PDT) > Matt Sherman <mwsh...@gmail.com <javascript:>> wrote: > > > Here’s a riff on generics focused on builtin typeclasses (instead of > > user contracts): https://clipperhouse.com/go-generics-typeclasses/ > > > > Feedback welcome. > > > > The main motivation behind generics has always been type-safe > containers of custom types. I'm not seeing this in your proposal. > > MSB > > > -- 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.