165
Does this exist anywhere outside of C++?
(lemmy.ml)
Post funny things about programming here! (Or just rant about your favourite programming language.)
They aren't the same thing so the comparison is weird.
endl
has aflush
which is important when doing something like embedded work or RTOS development. If i was doing multiple lines they all were\n
until the last line when i actually want to push the buffer.Obviously depending on the tuning of the compiler's optimization multiple flushes could be reduced but the goal should always be to write as optimal as possible.
Who in the hell is using iostreams in an RTOS
Several. Probably dozens
Sometimes you work in a codebase that was decided on by others for reasons you don't know.
Within reason.
Over optimization is a curse on getting done.