Created
May 31, 2015 20:00
-
-
Save BradB132/01fa9c3145a8969e43c3 to your computer and use it in GitHub Desktop.
SwiftTricks-2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//don't do this | |
if let object = optionalObject { | |
if booleanExpression { | |
// ... | |
} | |
} | |
//do this instead | |
if let object = optionalObject where booleanExpression { | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment