Originally Posted By: BillBarnard
Surely, unless you want to exit a program with an error code, then the RETURN command is the best to use.
(I also remember the 60s, and I know I was there).


Yes, you could use RETURN to avoid setting the exit state but generally in coding circles it's considered a bit gauche, some compilers will even take you to task for such a willful breach of etiquette.

It's good manners to explicitly set your exit state, and it takes as much typing to "EXIT 0" as it does to "RETURN" so there is really no excuse \:\)

Joking aside there are sound reasons for getting into the habit explicitly stating your error state when leaving a section of code, even if you don't think that it's important at the time.