Created
September 15, 2017 09:59
-
-
Save kalorz/4a807b125425f40258d4c6bc5078b670 to your computer and use it in GitHub Desktop.
Ruby Gotchas: and / && (explanation)
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
(surprise = true) and false # => surprise is true | |
surprise = (true && false) # => surprise is false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment