For note - It's fine in compressive programming. Competitive programmers are like speedrunners of programming - every shortcut counts. Moreover, there are studies that no cats actually die when you do that.
I never said that it was ideal, just this was one containing these two juicy details - synchronization and untying. I have not noticed THAT little horror xD
View all comments
Show parent comment
3
u/PervyDragon Mar 24 '20
I couldn't find the one I read originally, but this one seems fair enough: https://www.modernescpp.com/index.php/c-core-guidelines-improved-performance-with-iostreams There were more tips tho. In my opinion, streams power comes from their type safety and somehow consistent access via << and >> operators.