News for hackers. Stuff that matters.
Re:Ask HN: What Lived Up to the Hype? by emerged on Thursday December 24, 2020 @10:12AM (#25528105)
I feel it’s worth giving credit to Python f-strings in that case. They blew my mind in terms of convenience vs printf.
Re:Ask HN: What Lived Up to the Hype? by Nightshaxx on Thursday December 24, 2020 @10:58AM (#25528593)
Python has a few cool things like that. List comprehension blows my mind at how elegant it is.
Re:Ask HN: What Lived Up to the Hype? by abdusco on Friday December 25, 2020 @02:04AM (#25534824)
Agreed. Same with dict, set and generator comprehensions. I wish more languages included that feature.
Re:Ask HN: What Lived Up to the Hype? by danfang on Thursday December 24, 2020 @10:34AM (#25528330)
In addition to Python format strings: Javascript template strings:

`I am ${variable.foo} ${variable.bar}.` - Life changing!