"Clever"

Here's one for you. Given two boolean variables A and B, and a language where booleans are real types and not masqueraded integers, consider this:

if ( ! (A ^ B) ) { do_something(); }


Think about how you would have written this two-bool operation. Laugh with me.

Comments

Popular posts from this blog

Is It My Fault You Can't Handle The Truth?

Programming Is Mostly Thinking

Preplanning Poker: Is This Story Even Possible?