Content area

Abstract

The naive combination of polymorphic effects and polymorphic type assignment has been well known to break type safety. In the literature, there are two kinds of approaches to this problem: one is to restrict how effects are triggered and the other is to restrict how they are implemented. This work explores a new approach to ensuring the safety of the use of polymorphic effects in polymorphic type assignment. A novelty of our work is to restrict effect interfaces. To formalize our idea, we employ algebraic effects and handlers, where an effect interface is given by a set of operations coupled with type signatures. We propose signature restriction, a new notion to restrict the type signatures of operations and show that signature restriction ensures type safety of a language equipped with polymorphic effects and unrestricted polymorphic type assignment. We also develop a type-and-effect system to enable the use of both of the operations that satisfy and those that do not satisfy the signature restriction in a single program.

Details

Title
Signature restriction for polymorphic algebraic effects
Author
Sekiyama, Taro 1   VIAFID ORCID Logo  ; Tsukada, Takeshi 2   VIAFID ORCID Logo  ; Igarashi, Atsushi 3   VIAFID ORCID Logo 

 National Institute of Informatics & SOKENDAI, Tokyo, Japan (e-mail: [email protected]
 Chiba University, Chiba, Japan (e-mail: [email protected]
 Graduate School of Informatics, Kyoto University, Kyoto, Japan (e-mail: [email protected]
Publication title
Volume
34
Publication year
2024
Publication date
May 2024
Publisher
Cambridge University Press
Place of publication
Cambridge
Country of publication
United Kingdom
ISSN
09567968
e-ISSN
14697653
Source type
Scholarly Journal
Language of publication
English
Document type
Journal Article
Publication history
 
 
Online publication date
2024-05-27
Milestone dates
2022-10-02 (Received); 2023-09-19 (Revised); 2024-04-07 (Accepted)
Publication history
 
 
   First posting date
27 May 2024
ProQuest document ID
3060284439
Document URL
https://www.proquest.com/scholarly-journals/signature-restriction-polymorphic-algebraic/docview/3060284439/se-2?accountid=208611
Copyright
© The Author(s), 2024. Published by Cambridge University Press. This work is licensed under the Creative Commons Attribution License This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited. (the “License”). Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the terms of the License.
Last updated
2024-05-27
Database
ProQuest One Academic