Whitespace can show similar code
Nov. 10th, 2021 04:42 amWhile I am generally in favor of standards for code style in writing software, one thing that disappoints me is when I am prohibited from adding extra whitespace. Sometimes, I have similar-looking code where I could use spaces and breaks to show the variation clearly by aligning the similar portions directly underneath each other. However, the formatters become upset at the extra space and my code must instead look neat from their point of view but less clear from mine. The latest of so many past examples is,
Guide.__new_plane([w1/2, -h1/2, 0],
[-w1/2, -h1/2, 0],
[w2/2, -h2/2, l])
where I would prefer to write,
Guide.__new_plane([ w1/2, -h1/2, 0],
[-w1/2, -h1/2, 0],
[ w2/2, -h2/2, l])
In this case I could pad with + but usually I do not have such a workaround available.