SWIFT NOTES - GUARDWed, Sep 30, 2015
guard from Swift is a branching statement similar to
if, but have its own
distinct use cases.
Optional bound variables/constants in condition are visible after its’
Always needs a
elsebranch must jump out of the enclosing block of its’
guardstatement. You can do it:
by calling a function or method that doesn’t return, e.g.