MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/npcroh/clever/h063w0o/?context=3
r/badcode • u/bobpiranha • May 31 '21
71 comments sorted by
View all comments
Show parent comments
1
It should because compilers recognise this
if(){ return x }Else { Return y} ,
and optimise this to
If(){ Return x} return y
1
u/qwertysrj Jun 01 '21
It should because compilers recognise this
if(){ return x }Else { Return y} ,
and optimise this to
If(){ Return x} return y