3 ms·
The way I think about it is that if black's output looks weird, you should probably restructure your code. It's not _always_ true, but often enough it means the
by urxvtcd 4y ago
The way I think about it is that if black's output looks weird, you should probably restructure your code. It's not _always_ true, but often enough it means the code can be made simpler, some values created in flight can be given names, and so on.
- ttyprintk 4y agoNot saying there’s harm in realizing this, but the weirdest formatting choices in black seem to arrive deep in numerical formulae, where formatting actually makes differences in clarity. Under our typesetting-perfectionist overlords, our only recourse is to grow variable names so that the formulae make sense. And this defeats trying to reuse variable names from publication, so that a more-international audience can follow ‘ss’ rather than sum_of_squared_residuals_dude. Julia promotes this as a war cry over Python.