CompuServe Thread

What goes where?

1 messages in this thread
#110202From: John FoustFeb 21, 1988 5:09 PM
I use GOTOs for one thing, error handling. Algorithms that are improved with a GOTO are rare, but not extinct. I have lots of GOTOs in InterChange, one in every function, almost. I have an error-handling label within each function called 'out', and if something fails along the way, I set an error code, cleanup the function, and return the error code. Every function call checks the result. Errors get passed up to the next level that can handle them. GOTOs don't freak me out, hey, I cut my teeth on BASIC. But then again, take a look at the Programmer's Suite code. Yuck. Lots of GOTOs, just for fun. Makes you wonder how many GOTOs Mackraz removed when he exorcised Intuition.