A New Statement for Selection and Exception Handling in Imperative Languages
arXiv:1308.4452
Abstract
Diverse selection statements -- if-then-else, switch and try-catch -- are commonly used in modern programming languages. To make things simple, we propose a unifying statement for selection. This statement is of the form seqor(G_1,...,G_n) where each is a statement. It has a a simple semantics: sequentially choose the first successful statement and then proceeds with executing . Examples will be provided for this statement.
8 pages. We add the notion of negative exception handling