Mailinglist Archive: opensuse-ruby (3 mails)
| < Previous | Next > |
Re: [opensuse-ruby] Using "and" and "or" in Ruby
- From: "Duncan Mac-Vicar P." <dmacvicar@xxxxxxx>
- Date: Thu, 12 Aug 2010 09:41:40 +0200
- Message-id: <4C63A5B4.9020308@xxxxxxx>
On 08/06/2010 01:32 PM, David Majda wrote:
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@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-ruby+help@xxxxxxxxxxxx
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@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-ruby+help@xxxxxxxxxxxx
| < Previous | Next > |