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

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.
Agreed; if you’re immediately requesting the entire generator, there’s little point in using it in the first place.