Re:The unreasonable effectiveness of f-strings and re.verbose
by ubq323 on Tuesday May 24, 2022 @12:21PM
(#31494074)
> No. f-strings are an awful idea. And combining them with r-strings is yet another awful idea.
why?
Re:The unreasonable effectiveness of f-strings and re.verbose
by LynxInLA on Tuesday May 24, 2022 @11:05PM
(#31500144)
“Here's the plan: When someone uses a feature you don't understand, simply shoot them. This is easier than learning something new, and before too long the only living coders will be writing in an easily understood, tiny subset of Python 0.9.6 <wink>.”
― Tim Peters
No. f-strings are an awful idea. And combining them with r-strings is yet another awful idea. Please, never do that.
I'm also not a big fan of extended / verbose regular expressions because it creates ambiguity in interpretation (a slightly different language to define regular expressions). It's a bad solution to the problem of building longer expressions, which should've been addressed in a different way: by making the language of regular expressions more modular, not through allowing more hard-to-interpret language details.