On 2013-01-14 22:40, H. S. Teoh wrote:
Stream operators are teh eviil. Overloading << and >> for I/O was a horrible design decision. Operator overloading should be reserved for numeric types. But then again, Stroustrup didn't have the benefit of hindsight back then, and certainly, on the surface, overloading << and >> seemed like a cool thing to do. And C++ didn't (still doesn't?) have typesafe handling of variadics, so the desire to not have to write "cout.put(x); cout.put(y); cout.put(z); cout.put(w); ..." is understandable.
C++11 has variadic templates. -- /Jacob Carlborg
