c++ - Any downside to using the "and" operator vs the && operator? -



c++ - Any downside to using the "and" operator vs the && operator? -

any pros/cons using "and" operator vs && operator? think "and" going cause confusion (ironically).

if there aren't differences, why exist? seems silly , unnecessary.

they're anachronisms - introduced accomodate folks didn't have "^" or "|" characters on keyboards.

furthermore, although "and" , "&&" equivalent ... "and" , "&" quite different. using "and" instead of "&&" confusing on number of different levels, several different reasons. including giving poor maintenance programmer unnecessary "wtf?" experience.

i not utilize them in code. , i've never seen them used in "live" code.

imho...

here's bit more on topic, if you're interested:

the written versions of logical operators

http://www.cplusplus.com/reference/ciso646/

c++ operators

Comments

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

r - url in CRAN extension manual -

asp.net - .NET Control.ID property inconsistency -