{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,1,9]],"date-time":"2026-01-09T03:14:40Z","timestamp":1767928480288,"version":"3.49.0"},"reference-count":0,"publisher":"Centre pour la Communication Scientifique Directe (CCSD)","content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":[],"abstract":"<jats:p>Algebraic effects &amp; handlers have become a standard approach for side-effects\nin functional programming. Their modular composition with other effects and\nclean separation of syntax and semantics make them attractive to a wide\naudience. However, not all effects can be classified as algebraic; some need a\nmore sophisticated handling. In particular, effects that have or create a\ndelimited scope need special care, as their continuation consists of two\nparts-in and out of the scope-and their modular composition introduces\nadditional complexity. These effects are called scoped and have gained\nattention by their growing applicability and adoption in popular libraries.\nWhile calculi have been designed with algebraic effects &amp; handlers built in to\nfacilitate their use, a calculus that supports scoped effects &amp; handlers in a\nsimilar manner does not yet exist. This work fills this gap: we present\n$\\lambda_{\\mathit{sc}}$, a calculus with native support for both algebraic and\nscoped effects &amp; handlers. It addresses the need for polymorphic handlers and\nexplicit clauses for forwarding unknown scoped operations to other handlers.\nOur calculus is based on Eff, an existing calculus for algebraic effects,\nextended with Koka-style row polymorphism, and consists of a formal grammar,\noperational semantics, a (type-safe) type-and-effect system and type inference.\nWe demonstrate $\\lambda_{\\mathit{sc}}$ on a range of examples.<\/jats:p>","DOI":"10.46298\/lmcs-20(4:17)2024","type":"journal-article","created":{"date-parts":[[2024,11,22]],"date-time":"2024-11-22T16:00:11Z","timestamp":1732291211000},"source":"Crossref","is-referenced-by-count":1,"title":["A Calculus for Scoped Effects &amp; Handlers"],"prefix":"10.46298","volume":"Volume 20, Issue 4","author":[{"given":"Roger","family":"Bosman","sequence":"first","affiliation":[]},{"given":"Birthe van den","family":"Berg","sequence":"additional","affiliation":[]},{"given":"Wenhao","family":"Tang","sequence":"additional","affiliation":[]},{"given":"Tom","family":"Schrijvers","sequence":"additional","affiliation":[]}],"member":"25203","published-online":{"date-parts":[[2024,11,22]]},"container-title":["Logical Methods in Computer Science"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/lmcs.episciences.org\/14832\/pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/lmcs.episciences.org\/14832\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2024,11,22]],"date-time":"2024-11-22T16:00:14Z","timestamp":1732291214000},"score":1,"resource":{"primary":{"URL":"https:\/\/lmcs.episciences.org\/11234"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2024,11,22]]},"references-count":0,"URL":"https:\/\/doi.org\/10.46298\/lmcs-20(4:17)2024","relation":{"has-preprint":[{"id-type":"arxiv","id":"2304.09697v3","asserted-by":"subject"},{"id-type":"arxiv","id":"2304.09697v2","asserted-by":"subject"}],"is-same-as":[{"id-type":"arxiv","id":"2304.09697","asserted-by":"subject"},{"id-type":"doi","id":"10.48550\/arXiv.2304.09697","asserted-by":"subject"}]},"ISSN":["1860-5974"],"issn-type":[{"value":"1860-5974","type":"electronic"}],"subject":[],"published":{"date-parts":[[2024,11,22]]},"article-number":"11234"}}