|
|
|
|
|
by stefs
1728 days ago
|
|
while i agree with you on some parts (ternary operators for example), i love the autoformatters for two reasons: 1. it makes it just plain easier to read others code. it's hard enough to have to grasp the logic behind everything, if they have wildly different formatting on top of that it gets substantially worse (incidentally, this was given as one of the reasons why go was such a success in the open source world). 2. i've been able to get a couple of archaic linter rules dropped, i.e. the brackets around single statement conditionals. // for this reason brackets were mandatory
if (a == b)
doSomething();
doSomethingElse();
now with an auto formatters indentation fixes, this mistake becomes instantly obvious and thus a non-issue. |
|