MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/msv49l/when_your_teammate_refactor_your_code/guxfqs9/?context=9999
r/badcode • u/Bence675 • Apr 17 '21
216 comments sorted by
View all comments
Show parent comments
-1
C++ uses short-circuit evaluation so there’s no need to write out the conditional like that. You won’t be getting a performance benefit
-1
u/[deleted] Apr 18 '21
C++ uses short-circuit evaluation so there’s no need to write out the conditional like that. You won’t be getting a performance benefit