deas187":3mi3o3lh said:
you guys are all ripping on this, but i don't see the reasons other than you think all programmers should be at this same super high skill level and all programs should never hang and all code is coded perfectly. this could eventually be a great tool for some small company somewhere stuck in an infinite loop of slow growth.
It has nothing to do with the level of programmer that uses this, it's universally insanely stupid. The point is that if you prematurely break out of a loop, you can no longer make ANY valid assumption about the state of your program. Usually the point of a loop is that when you exit it -- when you want to, that is -- you have accomplished something useful.
Say, for example, you want to replace all occurrences of 'foo' with 'bar' in a file. You'd read the file's contents, get a list of all occurrences of 'foo' and then, in a loop, replace each of them with 'bar', after which you write the file back to disk. Suppose we're about halfway through. Half of the occurrences have already been replaced, half of them haven't. Jolt decides we're in an infinite loop and rapes the instruction pointer to get us out of the loop. What was the next step again? Oh, right, save the file. Now your code thinks all is well and has ignorantly saved the file with only half the occurrences of 'foo' replaced.