命令式语言中一种新的选择和异常处理语句
A New Statement for Selection and Exception Handling in Imperative Languages
摘要:
各种选择语句-- if-then-else、switch和try-catch --在现代程序设计语言中普遍使用。为了使事情变得简单,我们提出了一个统一的选择声明。该语句的形式为seqor(G_1,...,其中每个$G_i$是一个语句。它有一个简单的语义:顺序选择第一个成功的语句$G_i$,然后继续执行$G_i$。将为此声明提供实例。
英文摘要:
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 $G_i$ is a statement. It has a a simple semantics: sequentially choose the first successful statement $G_i$ and then proceeds with executing $G_i$. Examples will be provided for this statement.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。