2024/07/16 by Wenhao Tang, Leo White, Tang, Wenhao +9 · 3 voices · 3 citations
Computer Science · #Formal Methods in Verification #Logic, programming, and type systems #Model-Driven Software Engineering Techniques #cs.PL
paper · pdf · doi:10.48550/arxiv.2407.11816
openalex publication_date 2024/07/16 · openalex created_date 2024/08/18 · openalex updated_date 2026/07/28
Effect handlers are a powerful abstraction for defining, customising, and composing computational effects. Statically ensuring that all effect operations are handled requires some form of effect system, but using a traditional effect system would require adding extensive effect annotations to the millions of lines of existing code in these languages. Recent proposals seek to address this problem by removing the need for explicit effect polymorphism. However, they typically rely on fragile syntactic mechanisms or on introducing a separate notion of second-class function. We introduce a novel approach based on modal effect types.