News for hackers. Stuff that matters.
Re:Seven years of Go by pcwalton on Thursday November 10, 2016 @01:17PM (#12922754)
Performance is not the main problem with interface{}.
Re:Seven years of Go by richard_todd on Thursday November 10, 2016 @01:47PM (#12923031)
Indeed, but I think if they REALLY don't want to change the Go language, an officially blessed std library of "go generate"-able collections and algorithms would be an ok workaround for private use inside a package. It's extra work for the users, but you'd get widely-used, widely-tested, type-safe collections. The main problem would be interoperability when two packages independently generate an RBTree<int64,string> that Go thinks are different types.
Re:Seven years of Go by weberc2 on Thursday November 10, 2016 @02:22PM (#12923354)
Right, but it's a problem tagged-unions solve.