|
|
|
|
|
by qtplatypus
2435 days ago
|
|
It is rare that I have had problems with dynamic typing errors in P* languages. I am of the view that that dynamic code should be one of two things. 1) Super easy. That way doing it right is trivial.
2) Impossiblely difficult so the only people who are doing it can be trusted to do it right. To me go falls between those two. It’s real easy to say interface{} (indeed it is more difficult to make a non empty interface) but doing it in a way that is safe isn’t easy. I don’t think expressive power is the point here. As they are both compleate languages. More it is an issue of what trade offs and comprises have been made. |
|
These problems simply don't crop up in Go, or at least they're in a different ballpark in terms of frequency and severity. So yeah, Go lacks typesafe generics, but I'll make that tradeoff all day every day in exchange for the maintainability, performance, tooling, distribution, etc improvements that Go offers today. No contest.