,
Piotr Polesiuk
,
Filip Sieczkowski
Creative Commons Attribution 3.0 Unported license
It is folklore that effect handlers and delimited control operators are closely related: recently, this relationship has been proved in an untyped setting for deep handlers and the shift_0 delimited control operator. We positively resolve the conjecture that in an appropriately polymorphic type system this relationship can be extended to the level of types, by identifying the necessary forms of polymorphism, thus extending the definability result to the typed context. In the process, we identify a novel and potentially interesting type system feature for delimited control operators. Moreover, we extend these results to substantiate the folklore connection between shallow handlers and control_0 flavour of delimited control, both in an untyped and typed settings.
@InProceedings{pirog_et_al:LIPIcs.FSCD.2019.30,
author = {Pir\'{o}g, Maciej and Polesiuk, Piotr and Sieczkowski, Filip},
title = {{Typed Equivalence of Effect Handlers and Delimited Control}},
booktitle = {4th International Conference on Formal Structures for Computation and Deduction (FSCD 2019)},
pages = {30:1--30:16},
series = {Leibniz International Proceedings in Informatics (LIPIcs)},
ISBN = {978-3-95977-107-8},
ISSN = {1868-8969},
year = {2019},
volume = {131},
editor = {Geuvers, Herman},
publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik},
address = {Dagstuhl, Germany},
URL = {https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.FSCD.2019.30},
URN = {urn:nbn:de:0030-drops-105376},
doi = {10.4230/LIPIcs.FSCD.2019.30},
annote = {Keywords: type-and-effect systems, algebraic effects, delimited control, macro expressibility}
}