short circuit evaluation
Ruby doesn’t look at both expressions unless it has to; if it sees
false && true
it stops reading as soon as it sees && because it knows false && anything must be false.
0
Kudos
0
Kudos
Ruby doesn’t look at both expressions unless it has to; if it sees
false && true
it stops reading as soon as it sees && because it knows false && anything must be false.
I’m enjoying exercism.io like anybody else. Inspired by Ruby Koans with guard shell I set it up for my practicing. Please comment at my gist for any further suggestions. In the ~/exercism/ruby directory, add two files Guardfile and... Continue →