Mailinglist Archive: opensuse-ruby (3 mails)

< Previous Next >
[opensuse-ruby] Using "and" and "or" in Ruby
  • From: David Majda <dmajda@xxxxxxx>
  • Date: Fri, 06 Aug 2010 13:32:24 +0200
  • Message-id: <4C5BF2C8.50409@xxxxxxx>
Hi,

I guess most Ruby developers already read this useful article, but if not:

http://avdi.org/devblog/2010/08/02/using-and-and-or-in-ruby/

Short summary: "and" and "or" operators in Ruby are intended more as
control-flow operators than synonyms for "&&" and "||".

--
David Majda
SUSE Studio developer
http://susestudio.com/
--
To unsubscribe, e-mail: opensuse-ruby+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-ruby+help@xxxxxxxxxxxx

< Previous Next >
List Navigation
Follow Ups