Created
February 14, 2013 10:32
-
-
Save Frost/4951876 to your computer and use it in GitHub Desktop.
The difference between `&&` and `and` -- Valentines version
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
1.9.2-p320 :001 > roses = "red" and "blue" | |
=> "blue" | |
1.9.2-p320 :002 > violets = "red" && "blue" | |
=> "blue" | |
1.9.2-p320 :003 > roses | |
=> "red" | |
1.9.2-p320 :004 > violets | |
=> "blue" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment