Created
June 30, 2014 18:17
-
-
Save azizshamim/eb68f7e675f3de5b901f to your computer and use it in GitHub Desktop.
perilous ruby
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
irb(main):001:0> f = 5 | |
=> 5 | |
irb(main):002:0> f | |
=> 5 | |
irb(main):003:0> f = 5 and f / 5 | |
=> 1 | |
irb(main):004:0> f | |
=> 5 | |
irb(main):005:0> f = 5 && f / 5 | |
=> 1 | |
irb(main):006:0> f | |
=> 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment