Re:The language I wish Go was
by masklinn on Thursday October 21, 2010 @09:14AM
(#1815226)
If you read the post instead of just the funny tldr, you realize that many of the demands would make Go simpler and/or more orthogonal and/or smaller.
[ Parent
| on HN ]
Can you flesh that claim out a bit more? I read the post and it was almost all extra stuff that would make the language spec longer, not shorter.
One example was that tuples elegantly handle multiple return values anyways, so you don't need to bother with them if you have tuples (and tuples are good in their own right).
Another is that generics already exist in the language - map works even for user defined types. But since you can't make your own generics, map is all you get. With generics map is just a standard library feature rather than a core language feature, and you could write your own containers too if you wanted.
These might not make the language spec strictly shorter, but definitely more orthogonal.
If you have actually used Go, you would realize that many of his demands display seriously lack of familiarity with the language.
For example, he completely missed defer.