News for hackers. Stuff that matters.
Re:Black – Uncompromising Python code formatter by edflsafoiewq on Friday May 17, 2019 @03:06PM (#19942495)
No it wouldn't; black will put that all on one line if it can. The semantic information in vertical space is lost.

A better example is a matrix laid out as a grid, which auto-formatters always destroy

    mat3x3(
         0,  a, -b,
        -a,  0,  c,
         b, -c,  0,
    )
Re:Black – Uncompromising Python code formatter by a1369209993 on Friday May 17, 2019 @03:15PM (#19942572)
To be fair, I suspect RussianCow would write that as something like:

  mat3x3(
    rowvec3( 0, a, b),
    rowvec3(-a, 0, c),
    rowvec3( b,-c, 0),
    )
Which is probably better, especially with tuples instead of struct{Scalar[3]}. Doesn't fix

  mat3x3(( 0, a, b),(-a, 0, c),( b,-c, 0))
, though.