News for hackers. Stuff that matters.
Re:Python is not a great programming language. by boxed on Thursday March 04, 2021 @08:32AM (#26342100)
String formatting is indeed a mess, but that's a hind sight thing. Swift has a super nice system precisely because they are new and looked carefully at everyone else (I'm looking at you D who added string interpolation after swift but in a way that has all the problems of python).

But make no mistake: f-strings are NOT the same as .format()! One is compile time, the other is runtime. You can't localize f-strings.

There are no comments on this comment yet.