Programming Examples Needing Polymorphic Recursion

被引:2
|
作者
Hallett, J. J. [1 ]
Kfoury, A. J. [1 ]
机构
[1] Boston Univ, Dept Comp Sci, Boston, MA 02215 USA
关键词
polymorphic recursion; intersection types; finitary polymorphism; examples;
D O I
10.1016/j.entcs.2005.06.014
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Inferring types for polymorphic recursive function definitions (abbreviated to polymorphic recursion) is a recurring topic on the mailing lists of popular typed programming languages. This is despite the fact that type inference for polymorphic recursion using for all-types has been proved undecidable. This report presents several programming examples involving polymorphic recursion and determines their typability under various type systems, including the Hindley-Milner system, an intersection-type system, and extensions of these two. The goal of this report is to show that many of these examples are typable using a system of intersection types as an alternative form of polymorphism. By accomplishing this, we hope to lay the foundation for future research into a decidable intersection-type inference algorithm. We do not provide a comprehensive survey of type systems appropriate for polymorphic recursion, with or without type annotations inserted in the source language. Rather, we focus on examples for which types may be inferred without type annotations, with an emphasis on systems of intersectiontypes.
引用
收藏
页码:57 / 102
页数:46
相关论文
共 50 条
  • [41] A Study ofWorked Examples for SQL Programming
    Akhuseyinoglu, Kamil
    Hardt, Ryan
    Barria-Pineda, Jordan
    Brusilovsky, Peter
    Pollari-Malmi, Kerttu
    Sirkia, Teemu
    Malmi, Lauri
    PROCEEDINGS OF THE 27TH ACM CONFERENCE ON INNOVATION AND TECHNOLOGY IN COMPUTER SCIENCE EDUCATION, ITICSE 2022, VOL 1, 2022, : 82 - 88
  • [42] Executable Examples for Programming Problem Comprehension
    Wrenn, John
    Krishnamurthi, Shriram
    ICER '19 - PROCEEDINGS OF THE 2019 ACM CONFERENCE ON INTERNATIONAL COMPUTING EDUCATION RESEARCH, 2019, : 131 - 139
  • [43] SOME EXAMPLES OF BAYESIAN ADAPTIVE PROGRAMMING
    SAKAGUCHI, M
    INFORMATION AND CONTROL, 1966, 9 (03): : 230 - +
  • [44] PROGRAMMING BY ALGORITHMS - PRESENTATION AND EXAMPLES OF IMPLANTATION
    JAMY, C
    VANBREUGEL, M
    POTEL, A
    RECHERCHE AEROSPATIALE, 1980, (06): : 445 - 457
  • [45] PROGRAMMING BY EXPRESSION REFINEMENT - A SEQUENCE OF EXAMPLES
    MORRIS, JM
    STRUCTURED PROGRAMMING, 1990, 11 (04): : 189 - 197
  • [46] FlashNormalize: Programming by Examples for Text Normalization
    Kini, Dileep
    Gulwani, Sumit
    PROCEEDINGS OF THE TWENTY-FOURTH INTERNATIONAL JOINT CONFERENCE ON ARTIFICIAL INTELLIGENCE (IJCAI), 2015, : 776 - 783
  • [48] IMPLEMENTING POLYMORPHIC TYPING IN A LOGIC PROGRAMMING LANGUAGE
    KWON, K
    NADATHUR, G
    WILSON, DS
    COMPUTER LANGUAGES, 1994, 20 (01): : 25 - 42
  • [49] Dynamic typing for distributed programming in polymorphic languages
    Duggan, D
    ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 1999, 21 (01): : 11 - 45
  • [50] Polymorphic dynamic programming by algebraic shortcut fusion
    Little, Max A.
    He, Xi
    Kayas, Ugur
    FORMAL ASPECTS OF COMPUTING, 2024, 36 (02)