My super advanced text editor from the future isn't letting me do that:
if (failed)
WARN("failed because...");
else
ok++;
attempts++; // automatic deindent
When I add a line after ok++, it deindents it to be at the same
indentation level as the if, before letting me type any content into it.
OK, I lied about the super advanced from the future. It's just Vim.
Also GCC has been able to diagnose misleading indentation for some
years now.
Between those two, there is nothing to worry about; just concentrate on >whether it looks prettier without the braces or with.
Sysop: | DaiTengu |
---|---|
Location: | Appleton, WI |
Users: | 984 |
Nodes: | 10 (0 / 10) |
Uptime: | 82:09:12 |
Calls: | 12,854 |
Calls today: | 3 |
Files: | 186,574 |
Messages: | 3,214,708 |