by bunderbunder · 7y ago · 0 comments
1. Rob Pike doesn't have a strong grasp of type theory.
2. Rob Pike is an accomplished programmer.
To me, this conflict of opinions is structurally indistinguishable from 1. That shape over there is a square.
2. That shape over there is blue.
IOW, there is no argument to see here.1. Go doesn't have generics because the authors didn't have strong grasp of type theory.
2. Go doesn't have generics, not from a lack of knowledge, but because the authors' real world software engineering experience had shown to them it wasn't important.
Though, in that case, I think the argument is more like:
1. That shape is equilateral
2. That shape is equiangular
It turns out it's a square. Rob Pike's public comments on the subject do seem to betray a weak grasp of actual type theory. Or at least one that is about as strong as it could ever get if your knowledge is primarily informed by practical experience with C++ or Java-style deeply broken type systems. But it's also true that Go's found an alternative approach that gets the job done. Or at least, gets the job done if you're writing the types of programs that he's writing.So, even with the alternative statement, I still see no argument here.
I have used Go extensively and would disagree with the idea that the lack of generics in go was ill-informed (and therefore a mistake). I find that Go's limited number of features leads to simpler libraries that are much easier to comprehend and use effectively. And in situations where I previously would have reached for generics I am forced to find a different approach and the end result is often better. Yes it does have its drawbacks and is not a perfect solution, but as far as engineering decisions go, I feel it was a successful one.
What do you mean by "real world software engineering experience", Acme or Plan9? These are silly academic projects with tens of installations at best.