Skip to main content
7 events
when toggle format what by license comment
May 6, 2015 at 21:51 comment added Joseph Hansen You should, in fact, put curly braces on the same line in Javascript. You can cause errors if curly braces are on their own line. For example, see encosia.com/…
Nov 2, 2010 at 20:52 history made wiki Post Made Community Wiki
Sep 15, 2010 at 3:15 comment added R. Martinho Fernandes @Uwe: That's Cwalina's book and it's terribly named as it is much more than that. The FDG on MSDN has nothing to say about that. Also I wonder, why would the Framework Design Guidelines say anything about C# coding practice?
Sep 11, 2010 at 15:05 comment added Robert Harvey @Uwe: Perhaps. But Microsoft adopted the "aligned braces" approach for all of its MSDN C# examples, and it's baked into Visual Studio, so...
Sep 11, 2010 at 14:48 comment added Uwe Honekamp According to the "Framework Design Guidelines" the "canonical way" is to place the opening brace on the same line (i.e. the first form). Just sayin' ...
Sep 11, 2010 at 0:34 comment added Tamara Wijsman It can be written in a lot of languages like that, because a block-statement is a statement. Adding! :-)
Sep 10, 2010 at 23:09 history answered Robert Harvey CC BY-SA 2.5