Re:Ask HN: What programming feature can't you live without?
by sharmi on Wednesday May 03, 2017 @01:38AM
(#14253316)
For me list comprehensions are a godsend. I believe the loop logic is much better expressed in a single line of code than multiple lines of for or while syntax. No intermediate variables too. Now, this is becoming a common feature in all young languages, but the first time I encountered it in python a decade ago, I was on cloud 9. It is still one of my filter criteria when deciding if a language is worth investing in.
[ Parent
| on HN ]
There are no comments on this comment yet.