Is it good to use the word alternatives to symbolic operators?
It completely depends on the target audience of your code - both people and tools. People may not use them, and some tools will not recognize them. (Sometimes these tools use <ciso646> to define them as macros.)
I started using "and" and "or" more, especially when switching between C ++ and Python, and it was more readable. A little extra coherence between languages ββmatters more than I thought at first, but more importantly, && and || control structures, not operators (i.e. short circuit), which makes their words different from operators.
(Yes, technically they are C ++ operators, but they are more like if, else, return, while, etc. than +, -, * and other operators. Commas and conditional operators are similar to control structures, and, this is probably not a coincidence, they are often confused or at least less readable than individual statements, and if / else respectively.)
However, I very rarely use them in new code written for SO, for example, because I have not yet encountered the question of why recreating this problem was more important than reading for an audience of SO C ++.
source share