m***@gmail.com
2018-11-08 13:37:54 UTC
Wouldn't it be miles better to instead of un-teaching people from std::endl
and advertise '\n'
<https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#slio50-avoid-endl>
to have equally attractive alternative?
The point is - '\n' is not in any way beginner friendly as it is not an std
or build in "command"/object, but some alien symbol (to a new comer) like,
literally nothing else - it does not even look a single character.
Even for a non-beginner, some prefer typing std::endl as it is just simple
letters, not rarely used symbols (double colon, is not rarely used a t all)
Also, if we have a friendly new line alternative we could deprecate endl
and teach to new-line-and-flush-if-needed.
Without deprecating it, we might add confusion.
and advertise '\n'
<https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#slio50-avoid-endl>
to have equally attractive alternative?
The point is - '\n' is not in any way beginner friendly as it is not an std
or build in "command"/object, but some alien symbol (to a new comer) like,
literally nothing else - it does not even look a single character.
Even for a non-beginner, some prefer typing std::endl as it is just simple
letters, not rarely used symbols (double colon, is not rarely used a t all)
Also, if we have a friendly new line alternative we could deprecate endl
and teach to new-line-and-flush-if-needed.
Without deprecating it, we might add confusion.
--
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+***@isocpp.org.
To post to this group, send email to std-***@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/e17189bf-51be-496d-845a-3707a516a210%40isocpp.org.
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+***@isocpp.org.
To post to this group, send email to std-***@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/e17189bf-51be-496d-845a-3707a516a210%40isocpp.org.