用析取语句提高命令式程序设计的鲁棒性
Improving Robustness via Disjunctive Statements in Imperative Programming
摘要:
为了尽可能简单地处理故障,我们提出了一个新的基础核心(无类型)C,这是基于一个新的逻辑称为任务逻辑或命令式逻辑。然后,我们引入一个S:R形式的顺序析取语句。此语句具有以下语义:顺序执行S和R。如果S;R中至少有一个成功,则认为成功。此语句对于处理不重要的错误而不显式捕获它们很有用。
英文摘要:
To deal with failures as simply as possible, we propose a new foun- dation for the core (untyped) C, which is based on a new logic called task logic or imperative logic. We then introduce a sequential-disjunctive statement of the form S : R. This statement has the following semantics: execute S and R sequentially. It is considered a success if at least one of S;R is a success. This statement is useful for dealing with inessential errors without explicitly catching them.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。