Exceptions, continuations and macro-expressiveness

10Citations
Citations of this article
2Readers
Mendeley users who have this article in their library.

This article is free to access.

Abstract

This paper studies the the problem of expressing exceptions using first-class continuations in a functional-imperative language. Themain result is that exceptions cannot be macro-expressed using first-class continuations and references (contrary to “folklore”). This is shown using two kinds of counter example. The first consists of two terms whichare equivalent with respect to contexts containing continuations and references,but which can be distinguished using exceptions. It is shown,however, that there are no such terms which do not contain callcc.However, there is a Π1 sentence of first-order logic which is satisfied when interpreted in the domain of programs containing continuations and references but not satisfied in the domain of programs with exceptions and references. This is used to show that even when callcc isomitted from the source language, exceptions still cannot be expressed using continuations and references.

Cite

CITATION STYLE

APA

Laird, J. (2002). Exceptions, continuations and macro-expressiveness. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 2305, pp. 133–146). Springer Verlag. https://doi.org/10.1007/3-540-45927-8_10

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free