6 ms·
I second this. F-strings make string formatting so much more concise. I'm excited about the walrus operator for the same reason.
by theplague42 7y ago
I second this. F-strings make string formatting so much more concise. I'm excited about the walrus operator for the same reason.
- agumonkey 7y agof-strings allow mutation ? mutation is tricky, a whole field of programming language research is built on avoiding mutation
- mr_crankypants 7y agoNot 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.