I have read in other threads, like this 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?
Swift developers seem generally comfortable throwing exceptions and I am wondering if I should try to avoid using the do-try-catch
pattern.