Effects as capabilities: effect handlers and lightweight effect polymorphism

抄録

<jats:p>Effect handlers have recently gained popularity amongst programming language researchers. Existing type- and effect systems for effect handlers are often complicated and potentially hinder a wide-spread adoption.</jats:p> <jats:p> We present the language Effekt with the goal to close the gap between research languages with effect handlers and languages for working programmers. The design of Effekt revolves around a different view of effects and effect types. Traditionally, effect types express which <jats:italic>side effects</jats:italic> a computation might have. In Effekt, effect types express which <jats:italic>capabilities</jats:italic> a computation requires from its context. While this new point in the design space of effect systems impedes reasoning about purity, we demonstrate that it simplifies the treatment of effect polymorphism and the related issues of effect parametricity and effect encapsulation. To guarantee effect safety, we separate functions from values and treat <jats:italic>all</jats:italic> functions as second-class. We define the semantics of Effekt as a translation to System Xi, a calculus in explicit capability-passing style. </jats:p>

収録刊行物

被引用文献 (3)*注記

もっと見る

詳細情報 詳細情報について

問題の指摘

ページトップへ