@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 > wrote:
>
> >
On Tue, 4 Sep 2018 11:57:02 -0700 (PDT)
Matt Sherman 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
Here’s a riff on generics focused on builtin typeclasses (instead of user
contracts): https://clipperhouse.com/go-generics-typeclasses/
Feedback welcome.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop