News for hackers. Stuff that matters.
Re:Go 1.6 is Released by pcwalton on Thursday February 18, 2016 @01:47PM (#11128182)
> As auto-generated it can support more features than even an advanced generics could provide.

No, it can't. There are patterns that no monomorphization strategy (including code generation) can express. For example:

    func MakeList<T>(x T) List<T> {
        ...
    }

    func Foo<T>(x T) {
        if ... {
            Foo(MakeList(x))
        }
    }
This is a contrived example, but this shows up from time to time in functional data structures.
Re:Go 1.6 is Released by fpoling on Thursday February 18, 2016 @03:37PM (#11129114)
Code generation can do type erasure starting, for example from List<List<SomeConcreteType>>.