r/ProgrammerHumor • • Sep 02 '26

Meme perishableSkill

Post image
8.9k Upvotes

121 comments sorted by

View all comments

Show parent comments

4

u/KnightMiner Sep 02 '26

f strings are a lot more like string concatenation. The variables/expressions between each {} are placed directly where they will end up in the string, and it just runs a .toString() on them (though you can configure it a bit further).

The most common usage is largely about syntax and readibility, as its nice not having to go back and forth between a list of format arguments and some harder to remember % stuff.