News for hackers. Stuff that matters.
Re:Pattern matching accepted for Python by superbcarrot on Tuesday February 09, 2021 @04:32PM (#26082629)
I find the f-string version better because I read from left to right and find it unnatural when my eyes need to jump around several times over the same expression in order to parse it. In your example that effect isn't too strong because there isn't a lot of additional text in the string and it's very clear what's going on either way.

There are no comments on this comment yet.