C and C++ developers often use !, && and ||. Many don't know that not, and and o...

@charette@mstdn.ca

C and C++ developers often use !, && and ||.

Many don't know that not, and and or (among others) have been part of C and C++ for 3 decades.

They were introduced to C in 1995, and to C++ in 1998.

if (!ok)
if (not ok)
if (var_a && var_b)
if (var_a and var_b)
if (var_c || var_d)
if (var_c or var_d)

Personally, I much prefer using the keywords not, and, and or. I find it makes the code much easier to read naturally. #C #Cpp