Open lucaswerkmeister opened 10 years ago
The Dart formatter seems to be all about good line breaks, so there’s lots of good ideas in here: http://journal.stuffwithstuff.com/2015/09/08/the-hardest-program-ive-ever-written/
My opinion is that there should at least be opt-in behaviour to do this:
bla(bla,
bla,
bla,
bla,
bla,
bla(bla(bla(bla))));
A better
LineBreakStrategy
should try to ensure that the next line won’t be indented too much – i. e., it should preferto