News for hackers. Stuff that matters.
Re:Why C++ sucks (2016 edition) by gpderetta on Monday February 22, 2016 @05:56AM (#11149954)
> Notice the “unreadable code” from C#, even the portability issue (hint: \n does not always do what you think it does).

No, it does exactly what you think it does (unless it is a binary stream), it adds an end-of-line to the stream. If the underlying platform needs a "\r\n", the stream will do the conversion.

Re:Why C++ sucks (2016 edition) by dorinlazar on Tuesday February 23, 2016 @09:59AM (#11159250)
Yes and no. std::endl is not an alias for '\n', for good reason.