English

A New Statement for Selection and Exception Handling in Imperative Languages

Programming Languages 2019-01-14 v4

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 GiG_i is a statement. It has a a simple semantics: sequentially choose the first successful statement GiG_i and then proceeds with executing GiG_i. Examples will be provided for this statement.

Cite

@article{arxiv.1308.4452,
  title  = {A New Statement for Selection and Exception Handling in Imperative Languages},
  author = {Keehang Kwon},
  journal= {arXiv preprint arXiv:1308.4452},
  year   = {2019}
}

Comments

8 pages. We add the notion of negative exception handling

R2 v1 2026-06-22T01:12:27.672Z