by joaohaas · 3mo ago · 0 comments
On the other hand, being able to write 'list.filter(v => v.selected)' (or something similar) instead of:
listFiltered := []Item{}
for _, item := range list {
if item.selected {
listFiltered = append(listFiltered, item)
}
}
would save much more tokens.[0] has some good reasonings too, with history.
[0] https://www.reddit.com/r/golang/comments/c2a7b0/why_isnt_go_...]