Re:Warming up to Go
by burntsushi on Saturday September 12, 2015 @02:59PM
(#10208932)
> So that's what we're calling the lack of HoFs these days?
Go has HoFs. The lack of parametric polymorphism is what prevents you from writing `map` in Go (subject to several caveats surrounding efficiency and type safety).
So that's what we're calling the lack of HoFs these days? It's really sad to hear that anyone considers map/fold/filter are "overly-clever".
Tim Sweeney (Epic) says[1]:
"“For” loops in Unreal:
40% are functional comprehensions
50% are functional folds"
I hardly see how changing those loops into a construct that more accurately represents them is overly-clever.
1: http://www.cs.princeton.edu/~dpw/popl/06/Tim-POPL.ppt