The QUIT command can be used for three different scenarios in program code:
As a result, this can lead to code where it is very confusing to actually detect the usage, all the more that the nesting level is deep and the code is long; consider for instance:
Method m()
{
for {
if (somecondition) {
quit // breaks out of the for loop, does not return!
}
}
write "always printed!", !
quit // this one actually returns
}
For this reason, it is preferable to always use RETURN when the intent is indeed to terminate the execution.