News for hackers. Stuff that matters.
Re:Why 1 && 2 == 2 by CamperBob2 on Friday July 19, 2013 @12:20AM (#6068316)
I like how

  cout << 2 && 1 
demonstrates the lameness of the whole C++ iostreams syntax. I'll have to remember that the next time an argument arises.
Re:Why 1 && 2 == 2 by cldr on Friday July 19, 2013 @12:25AM (#6068329)
Feel free to change it to how you like it if you feel that another syntax would be more convenient. You can choose another operator or just create a variadic template function and use function syntax to avoid operator precedence issues.
Re:Why 1 && 2 == 2 by CamperBob2 on Friday July 19, 2013 @01:14AM (#6068450)

  printf("%d", 2 && 1);
seems to work OK.