News for hackers. Stuff that matters.
Re:Everything about Java 8 by mikeash on Wednesday March 27, 2013 @05:08PM (#5452025)
Two big problems with overloading << for streams are operator precedence (the precedence of << makes little sense for a stream operator) and the fact that the chained syntax can make the whole thing ambiguous (which is kind of a subset of the precedence problem), e.g.: cout << x << 3, does that shift x by 3, or output x and 3 separately?

There are no comments on this comment yet.