Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
quickthrower2
· 3y ago · 0 comments
I always add a counter to the infinite loops to break out of them incase of unexpectedly high number of iterations
Comments
[–]
bee_rider
3y ago
Error out or something? Otherwise it would seem the program is in a weird state.
[–]
quickthrower2
OP
3y ago
Error, or do the sensible “no results found” for example in the tree search.
[–]
eps
3y ago
... and then what?
[–]
scotty79
3y ago
Like the article said. Break out into a debugger and figure out why it got stuck.