News for hackers. Stuff that matters.
Re:Go as an alternative to Node.js for very fast servers by zemo on Wednesday August 14, 2013 @09:32AM (#6211340)
there are first class functions, and closures work the way you would expect. Since it's statically typed and there are no generics, there's no way to implement something like a left fold; you'd have to implement it on a per-type basis, but you could certainly do that. I believe the answer you're looking for is "no", but Go's functions are nothing to sneeze at. http://jordanorelli.tumblr.com/post/42369331748/function-typ...
Re:Go as an alternative to Node.js for very fast servers by masklinn on Wednesday August 14, 2013 @09:36AM (#6211370)
> you'd have to implement it on a per-type basis

Alternatively you can implement everything on interface{} and force the user of the higher-order function to use type assertions everywhere.