Created
May 20, 2011 01:15
-
-
Save thomasjo/982153 to your computer and use it in GitHub Desktop.
if vs. unless
This file contains hidden or 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 (!someVar && !someOtherVar) { | |
} | |
// If we had unless, we could do this | |
unless (someVar && someOtherVar) { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment