News for hackers. Stuff that matters.
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.
Re:The language I wish Go was by enneff on Thursday October 21, 2010 @09:42AM (#1815303)
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.
Re:The language I wish Go was by grogers on Thursday October 21, 2010 @11:08AM (#1815723)
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.

Re:The language I wish Go was by uriel on Thursday October 21, 2010 @11:02AM (#1815692)
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.

Re:The language I wish Go was by speleding on Thursday October 21, 2010 @11:44AM (#1815937)
tl;dr? He explicitly mentions "defer"