From: sto.mar@... Date: 2013-01-05T21:35:21+09:00 Subject: Best practice for &&, ||, and, or Hi group, I really would be interested in your thoughts about this a. in the context of your own projects, and b. with regard to teaching programming newbies The GitHub Ruby Styleguide [1] states: "The and and or keywords are banned. It's just not worth it. Always use && and || instead". So what's your practice/recommendation: 1. use only &&, || 2. use only `and', `or' 3. distinguish between boolean expressions (if this && that) and control flow (loot = give_money or die) 4. ??? 1. and 2. might require extra parentheses that often could be avoided with 3., but using parentheses might be clearer anyway. Especially for students who might have a hard time coping with the different precedences. I tend to 1., and for own projects maybe to 3. Regards, Marcus [1] https://github.com/styleguide/ruby/ --