Monday, August 16, 2010

Rails: Usage of Ruby's "and" and "or" operators should be reviewed

http://avdi.org/devblog/2010/08/02/using-and-and-or-in-ruby/

If you review Ruby code you might want to have a look at this blog post, it describes the differences between && and "and" as well as between || and "or". In Ruby "and" and "or" have a lower precedence as the boolean operators. This might lead to different flow control...

kostenloser Counter

No comments: