4 ms·
I know f-strings but I still can't believe them. There are parts of Python that look like it wants programmers do low level compiler job and I can't understand
by pmontra 10y ago
I know f-strings but I still can't believe them.
There are parts of Python that look like it wants programmers do low level compiler job and I can't understand why. This is one of them. Python can do %s string interpolation without some s'' s-strings so I wonder why it needs this f-string thing. Many languages can do string interpolation without having developers babysitting the interpreter. In 2016 we have the CPUs to make it happen the other way around.
- rat87 10y agoIt has to do with backwards compatibility in syntax if they had been smart enough to introduce in python3 they could have done it without the f.