3 ms·
I have mixed feelings about f strings. Having the string literal bound to the variable name feels kind of backwards -- that one could break interpolated string
by tedmiston 10y ago
I have mixed feelings about f strings. Having the string literal bound to the variable name feels kind of backwards -- that one could break interpolated strings inadvertently by refactoring a variable name. On the other the str.format syntax is a bit verbose, even in shorthand notation.
That said, I use Python 3 every day for almost everything without need to use every shiny new feature.
- Too 10y agoIt's Python we are talking about right? Refactoring a variable name in a non type safe language has always been prone to break something. If you trust your IDE to do refactoring on that level I would also trust it would rename inside the string.
- deleted 10y ago[deleted]