Hacker News new | ask | show | jobs
by kristoff_it 3068 days ago
Templated strings are great for when, as the name suggests, you want to create a string with some placeholders to be expanded at a later time.

When you just want to interpolate a string on the fly, Fstrings are absolutely the right thing to do most of the time.

1 comments

true but it seems that the performance gap is pretty huge and the new f-strings actually come in on top for string substitution:

https://cito.github.io/blog/f-strings/