3 ms·
> Isn't it simpler and readable to keep non-trivial expressions out of the f-string itself? But then you have to define what non-trivial expressions are, and m
by Denvercoder9 3y ago
> Isn't it simpler and readable to keep non-trivial expressions out of the f-string itself?
But then you have to define what non-trivial expressions are, and more importantly, people using the language have to learn that definition too. By having f-strings accept all valid expressions, the language actually becomes simpler.