5 ms·
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?
by patrickaljord 12y ago
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?
- yohanatan 12y agoTotally serious. And, it's not just the lack of generics-- that's just the tip of the iceberg.
- hahainternet 12y agoWhat problems have the lack of generics caused you in development?
- yohanatan 12y agoI 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). http://www.paulgraham.com/avg.html http://www.paulgraham.com/avg.html
- hahainternet 12y agoWhat solutions have lack of generics (in Go) prevented you from writing?
- codygman 12y agoType-safe json decoding.
- tracker1 12y agoIn JavaScript, none at all.. ;-) In C#, before generics, wiring up a typed collection/enumerable was seriously painful.
- lmm 12y agoLast 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.
- NateDad 12y ago"a language" means it presumably was not Go, and is therefore irrelevant. All languages are different.
- lmm 12y agoThe 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.
- NateDad 12y ago> 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.
- shadowmint 12y agoWhy does hacker news not have a reddit style 'below threshold' to display none subthreads? :/
- dang 12y agoI 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.
- yohanatan 12y agoIf 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').
- dsymonds 12y agoYou 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?
- sanatgersappa 12y agoSeriously. Why does every single thread about Go have to have at least 1 guy talking about lack of Generics?