首页    期刊浏览 2024年10月07日 星期一
登录注册

文章基本信息

  • 标题:Handling Algebraic Effects
  • 本地全文:下载
  • 作者:Gordon Plotkin ; Matija Pretnar
  • 期刊名称:Logical Methods in Computer Science
  • 印刷版ISSN:1860-5974
  • 电子版ISSN:1860-5974
  • 出版年度:2013
  • 卷号:9
  • 期号:4
  • 页码:1
  • DOI:10.2168/LMCS-9(4:23)2013
  • 出版社:Technical University of Braunschweig
  • 摘要:Algebraic effects are computational effects that can be represented by an equational theory whose operations produce the effects at hand. The free model of this theory induces the expected computational monad for the corresponding effect. Algebraic effects include exceptions, state, nondeterminism, interactive input/output, and time, and their combinations. Exception handling, however, has so far received no algebraic treatment. We present such a treatment, in which each handler yields a model of the theory for exceptions, and each handling construct yields the homomorphism induced by the universal property of the free model. We further generalise exception handlers to arbitrary algebraic effects. The resulting programming construct includes many previously unrelated examples from both theory and practice, including relabelling and restriction in Milner's CCS, timeout, rollback, and stream redirection.
  • 其他关键词:algebraic effects, exception handlers, generalised handlers
国家哲学社会科学文献中心版权所有