Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I feel it’s worth giving credit to Python f-strings in that case. They blew my mind in terms of convenience vs printf.


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!




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: