News for hackers. Stuff that matters.
Re:Proposal: Go should have generics by JanKanis on Monday April 18, 2016 @08:20AM (#11519301)
I don't think you're right that interfaces are implemented as a pointer to a struct. The struct is inline like any other struct, and it contains a pointer to a type and a pointer to the value, like `([*Baz], nil)` in your example. The problem is that a nil interface in Go is compiled to `(nil, nil)` which is different.

That still makes this inexcusable of course.

Re:Proposal: Go should have generics by lobster_johnson on Monday April 18, 2016 @10:45AM (#11520278)
You're right, it was lurking in the back of my mind that it must be on the stack entirely.