title: Does throwing seriously affect performance in Swift?
body: <p>I have read in other threads, like <a href="https://stackoverflow.com/questions/13835817/are-exceptions-in-c-really-slow">this</a> one, that throwing an exception in a language like c++ should be something that you only do in genuinely exceptional circumstances because the compiler is working as hard as it can to make the code run as fast as possible in the non-exception case and then pays the price for this speed by having expensive exception cases. Is this what happens in Swift too?</p>
  
  <p>Swift developers seem generally comfortable throwing exceptions and I am wondering if I should try to avoid using the <code>do-try-catch</code> pattern.</p>