News for hackers. Stuff that matters.
Re:Pattern matching accepted for Python by IanCal on Tuesday February 09, 2021 @04:34PM (#26082646)
> In the .format() version, the formatting and the values are separate and that makes it more clear to see both the formatting and the values.

It makes it harder to see which values actually go where though. I really dislike the separation.

Re:Pattern matching accepted for Python by roelschroeven on Tuesday February 09, 2021 @04:49PM (#26082805)
> I really dislike the separation.

That's obviously a pretty fundamental difference in point-of-view. And it looks like your point-of-view is shared by a large majority.

"The reasonable man adapts himself to the world. The unreasonable man persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw

I try to be reasonable, so I guess I should try to come to terms with f-strings. In any case please don't depend on more progress.

Re:Pattern matching accepted for Python by thaumasiotes on Tuesday February 09, 2021 @05:02PM (#26082963)
> It makes it harder to see which values actually go where though.

You can name the variables in the format string and then pass the expressions as keyword parameters.

Re:Pattern matching accepted for Python by aidos on Tuesday February 09, 2021 @07:06PM (#26084259)
You can do that with f-strings too... but you don't need to because they're generally already clearer.
Re:Pattern matching accepted for Python by ju_sh on Tuesday February 09, 2021 @04:41PM (#26082709)
Thank goodness we still have both ;)