EllisLab/CodeIgniter — pull request #1075 by flashover (2012-02-23 22:25:22+00:00)
Title: Replaced "AND" to "&&"

Hi all and @narfbg,

Considering the following reply: https://github.com/EllisLab/CodeIgniter/pull/473#issuecomment-4112969

Apparently someone is actively being pushed to go from AND to && in the PHP code.

Therefor, I did a search and replace and a review for the whole CodeIgniter codebase, which was done by using:

> find . -type f | xargs grep -E "\((.*)AND(.*)\)" -l | xargs sed -i 's/AND/\&\&/g'

This roughly fixed everything. So please pull this request if you want to stay on track with the advice in the reply mentioned.

On a more personal note: I don't like the inconsistency after this change. Because now there's a mix-up of "OR" and "&&" in CI code. As both are the preferred one's as told to me by the almighty User Guide. I fully understand the decision for abandoning "||" (double pipe) because it can be seen as 11 or ll (double small LL).