4 ms·
Go has first-class functions, so if you want map/reduce/filter there's nothing stopping you.
by DennisP 14y ago
Go has first-class functions, so if you want map/reduce/filter there's nothing stopping you.
- quatrevingts 14y agoExcept that you lose type safety (or write an implementation for every permutation of types..)
- DennisP 14y agoDidn't realize that, thanks.
- papsosouid 14y agoGo doesn't have parametric polymorphism. So yeah, there is something stopping you.
- voidlogic 14y agoNope, not stopping you: http://blog.burntsushi.net/type-parametric-functions-golang http://blog.burntsushi.net/type-parametric-functions-golang
- papsosouid 14y agoYes, stopping me. "You can resort to a horrible ugly cludge and lose type safety for your efforts" is not having parametric polymorphism.