Hacker News new | past | comments | ask | show | jobs | submit login

I second this. F-strings make string formatting so much more concise. I'm excited about the walrus operator for the same reason.



Not just more concise; less error prone.

A reasonably large number of the bugs I encounter relate to the order or number of formatting arguments not matching the slots in the format string. It's pretty hard to make that kind of mistake with an fstring.


f-strings allow mutation ?

mutation is tricky, a whole field of programming language research is built on avoiding mutation




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

Search: