David Heinemeier Hansson
2006-Feb-27 00:33 UTC
Don''t use "and" and "or" for boolean tests, instead always use "&&" and "||"
This is now Tha Law on all new patches. I documented this on the style guide at dev.rubyonrails.org. Reasoning: Everyone always forget the different binding rules of "and" and "or", which has resulted in bugs before. And it looks inconsistent with the rest of the code base. -- David Heinemeier Hansson http://www.loudthinking.com -- Broadcasting Brain http://www.basecamphq.com -- Online project management http://www.backpackit.com -- Personal information manager http://www.rubyonrails.com -- Web-application framework