Typed dynamic control operators for delimited continuations

  • Authors:
  • Yukiyoshi Kameyama;Takuo Yonezawa

  • Affiliations:
  • Department of Computer Science, University of Tsukuba;Department of Computer Science, University of Tsukuba

  • Venue:
  • FLOPS'08 Proceedings of the 9th international conference on Functional and logic programming
  • Year:
  • 2008

Quantified Score

Hi-index 0.00

Visualization

Abstract

We study the dynamic control operators for delimited continuations, control and prompt. Based on recent developments on purely functional CPS translations for them, we introduce a polymorphically typed calculus for these control operators which allows answer-type modification. We show that our calculus enjoys type soundness and is compatible with the CPS translation. We also show that the typed dynamic control operators can macro-express the typed static ones (shift and reset), while the converse direction is not possible, which exhibits a sharp contrast with the type-free case.