|
|
|
|
|
by SeanLuke
1957 days ago
|
|
> I wonder if over time, Golang will pick up more type features like Java and other languages have. I hope it doesn't pick them up like Java did. When Java was considering generics, there were two major proposals out there. Sun decided on easily the worst one: type erasure. Now we're stuck with it. When Java was considering closures, there were two major proposals out there that I recall [one being to get rid of Java's broken local variable closure semantics]. Sun (Oracle? forget) again picked the worst of the two proposals. Now we're stuck with a real monstrosity. Java has an amazing history of picking the wrong way to do things and permanently saddling developers with it. |
|
More details: https://www.beust.com/weblog/erasure-vs-reification/