On Thu, Oct 02, 2003 at 06:35:02PM +0200, Martin Stjernholm, Roxen IS @ Pike developers forum wrote:
So when you write the code that prints the message you also add a "break" afterwards to signify that the problem has been handled. What's the problem with that?
Basically, the only problem that I see is implicity. If I want to rethrow or continue, I want to make it explicit, and preferably without "continue" or "break" - just to make sure that those keywords won't be misinterpreted in case when someone forgot {} or so around "for", "while" or "switch".
Something like "dismiss" and "escalate" would be more clear, IMHO.
If we have a special operator to handle error, the keywords must be special as well (or we have a problem - how to rethrow explicitly from inside of "for" loop, using "break" or "continue"?).
Regards, /Al