3 ms·
enum { NORMAL = 1 ABNORMAL = 2 IRREGULAR = 3 } Now if you're writing like this, what happens when you introduce "EXCEPTIONAL =
by scrollaway 10y ago
enum {
NORMAL = 1
ABNORMAL = 2
IRREGULAR = 3
}
Now if you're writing like this, what happens when you introduce "EXCEPTIONAL = 4"? You change 3 other unrelated lines. This is something that alignment causes, regardless of "coding standards". Hell, gofmt does that... It looks pretty (to some extent - with long names and lots of members it gets unreadable), but creates so much noise.