Created
December 23, 2017 21:13
-
-
Save stoeckley/65303cf2177283fa8d77842ed8294b9c to your computer and use it in GitHub Desktop.
swift comma operator
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
if (foo != nil && bar > foo!) || foo == nil { | |
// something | |
} | |
if let foo = foo, bar > foo || self.foo == nil { | |
// something | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment