TY - GEN
T1 - A substructural type system for delimited continuations
AU - Kiselyov, Oleg
AU - Shan, Chung Chieh
PY - 2007
Y1 - 2007
N2 - We propose type systems that abstractly interpret small-step rather than big-step operational semantics. We treat an expression or evaluation context as a structure in a linear logic with hypothetical reasoning. Evaluation order is not only regulated by familiar focusing rules in the operational semantics, but also expressed by structural rules in the type system, so the types track control flow more closely. Binding and evaluation contexts are related, but the latter are linear. We use these ideas to build a type system for delimited continuations. It lets control operators change the answer type or act beyond the nearest dynamically-enclosing delimiter, yet needs no extra fields in judgments and arrow types to record answer types. The typing derivation of a directstyle program desugars it into continuation-passing style.
AB - We propose type systems that abstractly interpret small-step rather than big-step operational semantics. We treat an expression or evaluation context as a structure in a linear logic with hypothetical reasoning. Evaluation order is not only regulated by familiar focusing rules in the operational semantics, but also expressed by structural rules in the type system, so the types track control flow more closely. Binding and evaluation contexts are related, but the latter are linear. We use these ideas to build a type system for delimited continuations. It lets control operators change the answer type or act beyond the nearest dynamically-enclosing delimiter, yet needs no extra fields in judgments and arrow types to record answer types. The typing derivation of a directstyle program desugars it into continuation-passing style.
UR - http://www.scopus.com/inward/record.url?scp=38149105124&partnerID=8YFLogxK
UR - http://www.scopus.com/inward/citedby.url?scp=38149105124&partnerID=8YFLogxK
U2 - 10.1007/978-3-540-73228-0_17
DO - 10.1007/978-3-540-73228-0_17
M3 - Conference contribution
AN - SCOPUS:38149105124
SN - 9783540732273
T3 - Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
SP - 223
EP - 239
BT - Typed Lambda Calculi and Applications - 8th International Conference,TLCA 2007, Proceedings
PB - Springer Verlag
T2 - 8th International Conference on Typed Lambda Calculi and Applications,TLCA 2007
Y2 - 26 June 2007 through 28 June 2007
ER -