Y
Hacker News
new
|
ask
|
show
|
jobs
by
collyw
4495 days ago
I often use list comprehensions where I would have previously used a for loop. It means you have less variables and are less likely to have side effects. I wouldn't say it is
always
a bad idea.