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.
Agreed. Same with dict, set and generator comprehensions. I wish more languages included that feature.
In addition to Python format strings: Javascript template strings:
`I am ${variable.foo} ${variable.bar}.` - Life changing!
Wait til you try scanf
Re:Ask HN: What Lived Up to the Hype?
by asattarmd on Thursday December 24, 2020 @10:39AM
(#25528392)
What year did reaction happen? I spent my entire life taking it for granted, not realizing that it indeed is a little interpreted language in print statements.
For many of us it was in 2015 when Control-Flow Bending: On the Effectiveness of Control-Flow Integrity was presented at USENIX proving printf is turing complete. https://github.com/carlini/printf-tac-toe https://www.usenix.org/conference/usenixsecurity15/technical...
Man, when I first read about it I was like “whaaaaa???” A little interpreted language in my print statements? That’s crazy talk!
Now it’s like ... everywhere!