title: JavaScript single line 'if' statement - best syntax, this alternative?
body: <p>It's been clearly put, although opinion none the less, that forgoing curly brackets on a single line <code>if</code> statement is not ideal for maintainability and readability.</p>
  
  <p>But what about this?</p>
  
  <pre><code>if (lemons) { document.write("foo gave me a bar"); }
  </code></pre>
  
  <p>It's even more compressed, and if expanded, the curly brackets won't be forgotten. Are there any blatant problems, and if not, what are the considerations? I feel like it's still very readable, at least as much as a ternary operator anyway. It seems to me like ternary operators aren't suggested as much due to readability, although I feel like that that conclusion isn't quite as unanimous.</p>
  
  <p>The evil twin in me wants to suggest this, although the syntax obviously isn't meant for it, and is probably just a bad idea.</p>
  
  <pre><code>(syntax) ? document.write("My evil twin emerges"): "";
  </code></pre>