by nolemurs · 9y ago · 0 comments
Of course, as others have pointed out, with some sort of reasonable linting setup or with compiler warnings, you'll probably catch the bug (unless macros are involved), but even so, I feel having something that looks like a block but isn't, adds cognitive load for little benefit.
https://github.com/systemd/systemd/blob/master/CODING_STYLE#...
I once found a particularly confusing use of this style here:
https://github.com/erlang/otp/blob/master/erts/epmd/src/epmd...
But it is also so easy to catch that automatically (and in fact, gcc and clang will flag this as an error for you with the right incantation, and refuse to compile), that it is stupid to leave it to 50 different committers all avoiding accidents.