Handling Higher-Order Effects
Cas van der Rest, Jaro Reinders, Casper Bach Poulsen

TL;DR
This paper introduces a novel effect handler framework that effectively manages higher-order effects, such as exception handling and function abstraction, by enabling separate concerns and reducing unintended interactions.
Contribution
It presents a new kind of effect handler that handles higher-order effects more modularly and clearly than previous scoped effect handlers.
Findings
Supports higher-order effects like try-catch and function abstraction
Enables separate handling of effects without unintended interactions
Maintains flexibility for effect interaction when needed
Abstract
Algebraic effect handlers is a programming paradigm where programmers can declare their own syntactic operations, and modularly define the semantics of these using effect handlers. However, we cannot directly define algebraic effect handlers for many higher-order operations (or higher-order effects) -- i.e., operations that have computations as parameters. Examples of such higher-order effects include common programming features, such as try-catch exception handlers, function abstraction, and more. In this paper we present a new kind of effect handler that addresses this shortcoming. Our effect handler approach is closely related to previous work on scoped effect handlers, which also supports higher-order effects. A key difference is that our effect handlers make it easy to understand separate (higher-order) effects as separate concerns, since effects do not interact. In…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Logic, programming, and type systems · Software System Performance and Reliability
