6 ms·
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 g
by edflsafoiewq 7y ago
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,
)
- a1369209993 7y agoTo 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.