Re:Formatting code should be unnecessary
by sn0wleppard on Monday September 08, 2025 @03:31AM
(#45165524)
The worst is when you have lines in a similar pattern across your formatter's line length boundary and you end up with
[ Parent
| on HN ]
Re:Formatting code should be unnecessary
by crazygringo on Monday September 08, 2025 @10:08AM
(#45168485)
I think with the Black formatter you can force the multiline version by adding a trailing comma to the arguments.
The pain point you describe is real, which is why that was intentionally added as a feature.
Of course it requires a language that allows trailing commas, and a formatter that uses that convention.