Y
Hacker News
new
|
ask
|
show
|
jobs
by
lblume
250 days ago
list(map(f, ...)) should almost always be replaced with [f(x) for x in ...] though.
2 comments
zbentley
243 days 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.
link
sgarland
250 days ago
Agreed; if you’re immediately requesting the entire generator, there’s little point in using it in the first place.
link