News for hackers. Stuff that matters.
Re:Maybe adding generics to Go is about syntax after all by danharaj on Tuesday September 04, 2018 @11:57AM (#17909942)
I don't know much about Go. Does it have subtyping? Mixing polymorphism and subtyping isn't obvious. Stephen Dolan's thesis on algebraic subtyping [0] is the first really satisfactory answer, all previous ones having significant drawbacks, but it's only 2 years old, untested in a production language.

Considering how conservative, bordering on reactionary, the philosophy of Go seems, I think it's politically untenable.

[0] PDF: https://www.cl.cam.ac.uk/~sd601/thesis.pdf

Re:Maybe adding generics to Go is about syntax after all by atombender on Tuesday September 04, 2018 @07:07PM (#17913647)
Go does not have subtyping. Its type system is sufficiently rudimentary that steering it towards ML would just be just too extreme at this point.