[opensuse-ruby] Using "and" and "or" in Ruby
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@opensuse.org For additional commands, e-mail: opensuse-ruby+help@opensuse.org
On 08/06/2010 01:32 PM, David Majda wrote:
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 "||".
Thanks for sharing that. -- Duncan Mac-Vicar P. - Novell® Making IT Work As One™ SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) -- To unsubscribe, e-mail: opensuse-ruby+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-ruby+help@opensuse.org
participants (2)
-
David Majda
-
Duncan Mac-Vicar P.