Error Handling 5
- The downside of
if tryis that it usually puts the main code inside of a block.
- We can instead use
if catchwhich instead executes on an optional to get the error. And if there is a
ifthen the variable will be considered checked to be a real type.