News for hackers. Stuff that matters.
Re:Pprint: Pretty Printer for Modern C++ by Ace17 on Tuesday April 30, 2019 @02:21AM (#19785564)
phaedrus explained why use an infix operator, but why specially the shift operator?

My guess: because it has very low precedence, allowing stuff like:

> cout << a + b * c << " is the result\n";

Instead of:

> cout << (a + b * c) << " is the result\n";

There are no comments on this comment yet.