News for hackers. Stuff that matters.
Re:Go is moving to GitHub by yohanatan on Thursday November 13, 2014 @08:34PM (#8605345)
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?
Re:Go is moving to GitHub by lmm on Friday November 14, 2014 @04:51AM (#8606443)
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.
Re:Go is moving to GitHub by NateDad on Friday November 14, 2014 @06:23AM (#8606631)
"a language" means it presumably was not Go, and is therefore irrelevant. All languages are different.
Re:Go is moving to GitHub by lmm on Friday November 14, 2014 @09:27AM (#8607238)
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.
Re:Go is moving to GitHub by NateDad on Friday November 14, 2014 @11:28AM (#8607913)
> 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.

Re:Go is moving to GitHub by tracker1 on Thursday November 13, 2014 @09:20PM (#8605505)
In JavaScript, none at all.. ;-)

In C#, before generics, wiring up a typed collection/enumerable was seriously painful.

Re:Go is moving to GitHub by yohanatan on Thursday November 13, 2014 @09:13PM (#8605485)
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).

http://www.paulgraham.com/avg.html

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?
Re:Go is moving to GitHub by codygman on Friday November 14, 2014 @10:39AM (#8607595)
Type-safe json decoding.