9 ms·
>doesn't let you do overly-clever things to save a few lines of typing So that's what we're calling the lack of HoFs these days? It's really sad to hear that a
by MichaelGG 11y ago
>doesn't let you do overly-clever things to save a few lines of typing
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 http://www.cs.princeton.edu/~dpw/popl/06/Tim-POPL.ppt
- burntsushi 11y ago> 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).
- MichaelGG 11y agoIn practise I don't find passing function parameters without generics to be very useful.