Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
mihai_ionic
· 12y ago · 0 comments
Is there any reason why something like the following should not work?
while (condition) { a(); if (!condition) break; b(); }
Comments
[–]
malisper
12y ago
Your example assumes that you can inline the calls to a and b. If you can't (for example if one of them calls themselves) then your optimization won't work.