▲ | jonathaneunice 4 days ago | |||||||
I don't understand the f-string hate. f-strings put the value in the output string exactly where the value should be. Massive win for contextual awareness, no need to count ...3, 4, okay what's the position 4 value over on the right, does it match up?? And they use classic Python string formatting commands, except the = operator which makes them even better with a "name the variable, show its value in a concise way" option. What's not to like? (And if you don't like them, uh...they're not mandatory. Just don't use them.) | ||||||||
▲ | somat 4 days ago | parent [-] | |||||||
If i had to guess, the implicit access to all your vars feels gross to some, it's why I don't use them. I mean they are probably fine, like you said, puts the symbol right where you want it. It just never felt right to me. so I keep up the double dance of explicate format() calls. It is probably some sort of deep seated printf() based trauma. | ||||||||
|