Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
eweise
· 4y ago · 0 comments
its worse. You can't do basic things like make a map method.
Comments
[–]
liambowen
4y ago
Why can't you?
https://github.com/samber/lo/blob/master/slice.go#L20
[–]
eweise
OP
4y ago
you can do it that way but you can't add the map method to a struct like persons.map() which would allow you to chain methods. But I guess with the multiple return value convention, you can't chain anyway very nicely.