News for hackers. Stuff that matters.
Re:First chapter of Kernighan and Donovan's new Go book [pdf] by aikah on Monday October 19, 2015 @04:40PM (#10415557)
> I'm pretty sure the feature will show up in the next few minor version increments.

No it won't. People need to stop expecting generics because it will never happen. Not that agree with this but it was made pretty clear in the go-nuts mailing list that the Go team wants to keep Go type system "simple".

Re:First chapter of Kernighan and Donovan's new Go book [pdf] by nsajko on Monday October 19, 2015 @06:31PM (#10416257)
Maybe in Go 2? ;)
Re:First chapter of Kernighan and Donovan's new Go book [pdf] by MikeTaylor on Monday October 19, 2015 @08:37PM (#10416763)
Never gonna happen, Go 2 is considered harmful.
Re:First chapter of Kernighan and Donovan's new Go book [pdf] by api on Monday October 19, 2015 @08:48PM (#10416796)
This is one of the things I like about Go: it's "done." In exchange for passing on extensions that might make certain use cases easier, we'll avoid the bloat and have decades of backward compatibility.

We just came out of a decade of nifty language mania. What I learned is that languages are boring but problems are interesting. Algorithms and solutions are interesting. A great solution to a challenging problem is really interesting even if it's in the most boring language ever.

I have code on my machine written in C in the 70s because C is largely "done." People today continue to write interesting stuff in C. Neuromancer was written in the same language as Lord of the Rings and Moby Dick, too.

Re:First chapter of Kernighan and Donovan's new Go book [pdf] by yokohummer7 on Monday October 19, 2015 @10:12PM (#10417032)
C is clearly not done, actually. Both C99 and C11 added, deprecated, and even removed many features. You can run C in the 70s not because it didn't change, but because it retained backward compatibility. It will be pretty surprising if Go manages to prohibit even the same level of changes C has taken.
Re:First chapter of Kernighan and Donovan's new Go book [pdf] by zeckalpha on Monday October 19, 2015 @10:20PM (#10417052)
What C compiler do you use to compile that 70s code? I find modern compilers usually choke on the "done" C code from then.
Re:First chapter of Kernighan and Donovan's new Go book [pdf] by jschwartzi on Monday October 19, 2015 @11:00PM (#10417161)
You have to feed it a switch or two, but gcc will do it.

Of course, we're talking about pre-ANSI C where any function prototype without a void argument implicitly accepts any and all arguments.

Re:First chapter of Kernighan and Donovan's new Go book [pdf] by zeckalpha on Tuesday October 20, 2015 @10:46PM (#10423373)
ANSI was 9 years after the 70s. I'm curious about the 70s C code that was "done". My point is that Go may still be in the 70s.
Re:First chapter of Kernighan and Donovan's new Go book [pdf] by JonahBraun on Tuesday October 20, 2015 @01:44AM (#10417619)
You missed the joke re: Go 2.

I don't think Go is done. The active development speaks otherwise.

Re:First chapter of Kernighan and Donovan's new Go book [pdf] by MikeTaylor on Wednesday October 21, 2015 @12:25PM (#10426512)
I think everyone missed it. Glad you, at least, didn't :-)