Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
DennisP
· 13y ago · 0 comments
Go has first-class functions, so if you want map/reduce/filter there's nothing stopping you.
Comments
[–]
quatrevingts
13y ago
Except that you lose type safety (or write an implementation for every permutation of types..)
[–]
DennisP
OP
13y ago
Didn't realize that, thanks.
[–]
papsosouid
13y ago
Go doesn't have parametric polymorphism. So yeah, there is something stopping you.
[–]
voidlogic
13y ago
Nope, not stopping you:
http://blog.burntsushi.net/type-parametric-functions-golang
[–]
papsosouid
13y ago
Yes, stopping me. "You can resort to a horrible ugly cludge and lose type safety for your efforts" is not having parametric polymorphism.