From: Admin Tensor Date: 2013-01-07T04:30:37+09:00 Subject: Re: Best practice for &&, ||, and, or unknown wrote in post #1091219: > Exactly. This discussion has confirmed my tendency to only teach > &&, || (for boolean expressions, assignments with defaults, ...) > and leave control flow to if/unless. > > Myself, I use constructs like `do_something or do_other' > very seldom anyway. Yup. The way && and || work is like almost all other languages. But because "and" and "or" has lower precedence and "and" has the same precedence as "or", I almost never use them. (If you switch from language to language, you know what I mean.) Regards, Bill -- Posted via http://www.ruby-forum.com/.