计算机科学 > 计算机科学中的逻辑
[提交于 2013年9月6日]
标题:Combining and Relating Control Effects and their Semantics
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Combining local exceptions and first class continuations leads to programs with complex control flow, as well as the possibility of expressing powerful constructs such as resumable exceptions. We describe and compare games models for a programming language which includes these features, as well as higher-order references. They are obtained by contrasting methodologies: by annotating sequences of moves with "control pointers" indicating where exceptions are thrown and caught, and by composing the exceptions and continuations monads. The former approach allows an explicit representation of control flow in games for exceptions, and hence a straightforward proof of definability (full abstraction) by factorization, as well as offering the possibility of a semantic approach to control flow analysis of exception-handling. However, establishing soundness of such a concrete and complex model is a non-trivial problem. It may be resolved by establishing a correspondence with the monad semantics, based on erasing explicit exception moves and replacing them with control pointers.
提交历史
来自:EPTCS[v1] 2013年9月6日 星期五 00:00:00 UTC