'AND' vs '&&' as operator

Posted by ts on Stack Overflow See other posts from Stack Overflow or by ts
Published on 2010-05-10T14:20:14Z Indexed on 2010/05/10 14:24 UTC
Read the original article Hit count: 291

Filed under:
|
|

Actually, i am facing a codebase where developpers decided to use 'AND' and 'OR' instead of '&&' and '||'. I know that there is difference in operators precedence (&& goes before 'and'), but with given framework (prestashop to be precise) is clearly not a reason. So, my question: which version are you using? Is 'and' more readable than '&&'? || there is ~ difference?

© Stack Overflow or respective owner

Related posts about php

Related posts about coding-style