Re:Go is moving to GitHub
by patrickaljord on Thursday November 13, 2014 @08:34PM
(#8605341)
Really? You've managed to mention the lack of generics on a thread announcing moving go to github? Is this a parody comment or are you serious?
[ Parent
| on HN ]
Re:Go is moving to GitHub
by sanatgersappa on Thursday November 13, 2014 @10:46PM
(#8605721)
Seriously. Why does every single thread about Go have to have at least 1 guy talking about lack of Generics?
Re:Go is moving to GitHub
by shadowmint on Thursday November 13, 2014 @08:42PM
(#8605381)
Why does hacker news not have a reddit style 'below threshold' to display none subthreads? :/
I feel your pain. This is coming. In the meantime, we've detached this subthread from its parent so we can mark it off-topic.
All: predictable flamewars add no new information, therefore have a signal/noise ratio of zero, and therefore are off topic for Hacker News.
If this area is going to be marked off, then I would appreciate my mod points being restored as well. If you look at my original response, it was pointing out the fallacy in a very particular claim (and nothing resembling a 'flame war').
You got downvoted (presumably; I don't have such powers) because you took this off-topic (Go's type system has nothing to do with what version control system is used for its development). What's the point of HN karma if you can get those points back?
Totally serious. And, it's not just the lack of generics-- that's just the tip of the iceberg.
Re:Go is moving to GitHub
by hahainternet on Thursday November 13, 2014 @08:46PM
(#8605397)
What problems have the lack of generics caused you in development?
Last time I used a language without generics I had to cast web form values (we used a library with a general-purpose representation of "form control backed by object"). Sometimes these were incorrect, and had to be debugged. More than that, when working on the form code I had to constantly keep track of the types of things in my head, because there was no way to have the computer do it for me (we did try Hungarian notation for a bit but that was a disaster). Is it the end of the world? No. Does it slow development? Absolutely.
"a language" means it presumably was not Go, and is therefore irrelevant. All languages are different.
The fact that we can talk about "generics" at all means you're wrong. Any general-purpose programming language has to solve the same set of problems and the ways different languages solve them are often recognizably the same approach. And Go is very, very similar to Java 1.4.
> Go is very, very similar to Java 1.4
Except for multiple return values, easy concurrency, implicit interfaces, real value types, pointers, functions as first class types, closures, no inheritance, no exceptions.... but yeah, other than that, they're totally similar languages.
In JavaScript, none at all.. ;-)
In C#, before generics, wiring up a typed collection/enumerable was seriously painful.
I think the right way to think about that is: "what solutions has lack of generics prevented me from writing?". From the expressive end of the power continuum, Go is way down there (somewhere below Blub probably).
Re:Go is moving to GitHub
by hahainternet on Thursday November 13, 2014 @09:45PM
(#8605581)
What solutions have lack of generics (in Go) prevented you from writing?