On Wed, Sep 12, 2018 at 6:47 AM, Wojciech S. Czarnecki <o...@fairbe.org> wrote: > > https://github.com/ohir/gonerics > > Thanks to all for your insights and stated concerns. > > Changes: > > 1. "Out" (return) type constraints are out. Might return as optional. > 2. enumerated "T is assignable to" constraint added > 3. "Rationale" clarified.
I don't see a description of generic types, I only see generic functions. I don't understand how you handle a named type like `type MyInt int`. Such a type is neither identical to `int` nor assignable to `int`. You don't have a way of saying "convertible to `int`", and if you did it's not clear how it would handle, say, `float64`. Ian -- 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.