Timeline for Single statement if block - braces or no?
Current License: CC BY-SA 2.5
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 27, 2012 at 16:58 | comment | added | Loren Pechtel | To me the indenting makes it clear what's going on. The first form burns extra screen space and thus is a negative to me. | |
| Sep 9, 2011 at 7:02 | history | made wiki | Post Made Community Wiki by user36294 | ||
| Nov 8, 2010 at 4:32 | comment | added | Steven A. Lowe | @SnOrfus: somewhat sarcastic, since the extra 2 characters are trivial overhead and prevent a very common maintenance mistake. Your Mileage May Vary ;-) | |
| Nov 8, 2010 at 4:25 | comment | added | Steven Evers | @Steven A. Lowe: I'm not sure if your original comment was sarcastic, but an if-statement, with or without braces, is not hard to maintain. That's the point. | |
| Nov 8, 2010 at 3:00 | comment | added | Steven A. Lowe | @TheLQ I don't forget braces, I always use braces. | |
| Nov 4, 2010 at 16:42 | comment | added | UncleZeiv | more succint == less verbose | |
| Nov 4, 2010 at 1:06 | comment | added | TheLQ | @Steven If you forget braces, I think there are other problems here. | |
| Nov 3, 2010 at 23:52 | comment | added | Steven A. Lowe | absolutely! after all, if the code was hard to write, it should be hard to maintain, too! ;-) | |
| Nov 3, 2010 at 14:54 | history | answered | Steven Evers | CC BY-SA 2.5 |