News for hackers. Stuff that matters.
Re:Seven years of Go by pcwalton on Thursday November 10, 2016 @04:57PM (#12924827)
> I dispute that these features improve productivity. With the exception of modules (whose purpose has always eluded me) all are available in Go (or could be trivially implemented) at the expense of safety and/or performance.

OK. How do you implement array.map() in Golang?

Re:Seven years of Go by weberc2 on Thursday November 10, 2016 @05:17PM (#12925024)
Re:Seven years of Go by wtetzner on Thursday November 10, 2016 @05:48PM (#12925294)
Wow. That seems very complicated for an implementation of map().

It seems like this is a perfect example of how generics are a productivity feature.

Re:Seven years of Go by weberc2 on Thursday November 10, 2016 @06:23PM (#12925618)
It's complicated because the reflect library is very general. There's no need to repeat most of this. So in fact, it's a perfect example of how functions are a productivity feature.
Re:Seven years of Go by wtetzner on Wednesday November 16, 2016 @10:36PM (#12974013)
I would argue it's both.