News for hackers. Stuff that matters.
Re:Toward Go 2 by jadbox on Thursday July 13, 2017 @02:07PM (#14763661)
Agree- having map, filter, reduce with strong type guarantees will be a huge boon. Imagine being able to map over a collection and the code hints will understand the new output types in the chain. This is something you cannot have when your higher order ops are all typed to Interface {}.
Re:Toward Go 2 by djur on Thursday July 13, 2017 @05:22PM (#14765368)
Unfortunately, Go is a language whose original creator is of the opinion that map/filter/reduce are just ways to make your program "fit on one line"[1], and that you should just use a for loop[2].

[1]: https://groups.google.com/forum/#!topic/golang-nuts/RKymTuSC... [2]: https://github.com/robpike/filter