Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
emerged
· 5y ago · 0 comments
I feel it’s worth giving credit to Python f-strings in that case. They blew my mind in terms of convenience vs printf.
Comments
[–]
Nightshaxx
5y ago
Python has a few cool things like that. List comprehension blows my mind at how elegant it is.
[–]
abdusco
5y ago
Agreed. Same with dict, set and generator comprehensions. I wish more languages included that feature.
[–]
danfang
5y ago
In addition to Python format strings: Javascript template strings:
`I am ${variable.foo} ${variable.bar}.` - Life changing!