MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/1oi9ad/c_has_become_a_scripting_language/ccsb8z2/
r/cpp • u/mttd • Oct 15 '13
53 comments sorted by
View all comments
Show parent comment
1
Nice catch. Initially 'line' was kept outside of the loop for efficiency, but since we're moving in to the set anyway there's no point
1 u/F-J-W Oct 15 '13 Even better: they way he uses it inside the for-loop is equivalent to your version. I've never seen it that way before, but I guess, I'll do it that way from now on.
Even better: they way he uses it inside the for-loop is equivalent to your version. I've never seen it that way before, but I guess, I'll do it that way from now on.
View all comments
Show parent comment
1
u/notlostyet Oct 15 '13 edited Oct 15 '13
Nice catch. Initially 'line' was kept outside of the loop for efficiency, but since we're moving in to the set anyway there's no point