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.
You can do that with f-strings too... but you don't need to because they're generally already clearer.
It makes it harder to see which values actually go where though. I really dislike the separation.