[clang] [clang][Python] Use fstrings instead of string concatenations (PR #173861)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 29 12:48:12 PST 2025
mikomikotaishi wrote:
I have noticed the code did use fstrings previously in a few locations, but string interpolation is generally a lesser cognitive load to read than the `str.format()` method which puts all the variables at the end. Personally I think it's easier to read the interpolated string with arguments in place.
https://github.com/llvm/llvm-project/pull/173861
More information about the cfe-commits
mailing list