3 ms·
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 fi
by danharaj 8y ago
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 https://www.cl.cam.ac.uk/~sd601/thesis.pdf
- atombender 8y agoGo does not have subtyping. Its type system is sufficiently rudimentary that steering it towards ML would just be just too extreme at this point.