title: When to use ternary operators?
body: <p>Just being curious here, when is the desired moment (better readability?) for using <code>?:</code> ? </p>
  
  <p>I mean, obviously this:</p>
  
  <pre><code>points = (someBool) ? 0 : 10
  </code></pre>
  
  <p>is better than this:</p>
  
  <pre><code>if someBool {
      points = 0
  } else {
      points = 10
  }
  </code></pre>
  
  <p>but then no one would want to read this:</p>
  
  <pre><code>someView.isHidden ? updateViewVisibility(desired: .Visible, forView: someView) : updateViewVisibility(desired: .Hidden, forView: someView)
  </code></pre>
  
  <p>So is there a guideline for all of this? Or is this just a <em>mood</em> thing?</p>