Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
lblume
· 1y ago · 0 comments
list(map(f, ...)) should almost always be replaced with [f(x) for x in ...] though.
Comments
[–]
zbentley
1y ago
I’m with you, but I see that pattern in enough code I read that it might be easier to fix (optimize) the language than the programmers here.
[–]
sgarland
1y ago
Agreed; if you’re immediately requesting the entire generator, there’s little point in using it in the first place.