On the Decidability of Subtyping with Bounded Existential Types and Implementation Constraints

被引:0
|
作者
Wehr, Stefan [1 ]
Thiemann, Peter [2 ]
机构
[1] Foctis Res GmbH, D-79100 Freiburg, Germany
[2] Univ Freiburg, D-79110 Freiburg, Germany
关键词
Object-Oriented Programming; Subtyping; Bounded Existential Types; Undecidability; !text type='JAVA']JAVA[!/text;
D O I
10.1007/s00354-010-0100-1
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Bounded existential types are a powerful language feature for modeling partial data abstraction and information hiding. However, existentials do not mingle well with subtyping as found in current object-oriented languages: the subtyping relation is already undecidable for very restrictive settings. This paper considers two subtyping relations defined by extracting the features specific to existentials from current language proposals (JavaGI, WildFJ, and Scala) and shows that both subtyping relations are undecidable. One of the two subtyping relations remains undecidable even if bounded existential types are restricted to the equivalent of interface types. With the goal of regaining decidable type checking for the JavaGI language, the paper also discusses various restrictions including the elimination of bounded existentials from the language as well as possible amendments to regain some of their features.
引用
收藏
页码:87 / 124
页数:38
相关论文
共 50 条
  • [1] On the Decidability of Subtyping with Bounded Existential Types and Implementation Constraints
    Stefan Wehr
    Peter Thiemann
    New Generation Computing, 2011, 29 : 87 - 124
  • [2] On the Decidability of Subtyping with Bounded Existential Types
    Wehr, Stefan
    Thiemann, Peter
    PROGRAMMING LANGUAGES AND SYSTEMS, PROCEEDINGS, 2009, 5904 : 111 - 127
  • [3] On subtyping, wildcards, and existential types
    Victoria University, Wellington, New Zealand
    不详
    Proc. Int. Workshop Form. Tech. Java-like Programs, FTfJP,
  • [4] Decidable Subtyping of Existential Types for Julia
    Belyakova, Julia
    Chung, Benjamin
    Tate, Ross
    Vitek, Jan
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2024, 8 (PLDI):
  • [5] Decidability of higher-order subtyping with intersection types
    Compagnoni, AB
    COMPUTER SCIENCE LOGIC, 1995, 933 : 46 - 60
  • [6] Subtyping for F-bounded quantifiers and equirecursive types
    Glew, Neal
    Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), 2012, 7230 LNCS : 66 - 82
  • [7] An implementation of subtyping among regular expression types
    Lu, KZM
    Sulzmann, M
    PROGRAMMING LANGUAGES AND SYSTEMS, PROCEEDINGS, 2004, 3302 : 57 - 73
  • [8] Combining decidability paradigms for existential rules
    Gottlob, Georg
    Manna, Marco
    Pieris, Andreas
    THEORY AND PRACTICE OF LOGIC PROGRAMMING, 2013, 13 : 877 - 892
  • [9] An extension of HM(X) with bounded existential and universal data-types
    Simonet, V
    ACM SIGPLAN NOTICES, 2003, 38 (09) : 39 - 50
  • [10] Higher-order subtyping and its decidability
    Compagnoni, A
    INFORMATION AND COMPUTATION, 2004, 191 (01) : 41 - 103