title: Would it be bad form to put braces on the same line as the statement for single line "if" statements?
body: <p>So I know it's considered somewhat good practice to always include curly braces for if, for, etc even though they're optional if there is only one following statement, for the reason that it's easier to accidentally do something like:</p>
  
  <pre><code>if(something == true)
      DoSomething();
      DoSomethingElse();
  </code></pre>
  
  <p>when quickly editing code if you don't put the braces.</p>
  
  <p>What about something like this though:</p>
  
  <pre><code>if(something == true)
  {   DoSomething(); }
  </code></pre>
  
  <p>That way you still take up fewer lines (which IMO increases readability) but still make it unlikely to accidentally make the mistake from above?</p>
  
  <p>I ask because I don't believe I've ever seen this style before for if or loops, but I do see it used for getter and setter in C# properties like:</p>
  
  <pre><code>public string Name 
      {get;set;}
  </code></pre>
  
  <p>Not asking what's best since that's too subjective, but rather just whether this would be considered acceptable style and if not, why not.</p>