Abstract | ||
---|---|---|
This paper addresses compositional and incremental type checking for object-oriented programming languages. Recent work achieved incremental type checking for structurally typed functional languages through co-contextual typing rules, a constraint-based formulation that removes any context dependency for expression typings. However, that work does not cover key features of object-oriented languages: Subtype polymorphism, nominal typing, and implementation inheritance. Type checkers encode these features in the form of class tables, an additional form of typing context inhibiting incrementalization.In the present work, we demonstrate that an appropriate co-contextual notion to class tables exists, paving the way to efficient incremental type checkers for object-oriented languages. This yields a novel formulation of Igarashi et al.u0027s Featherweight Java (FJ) type system, where we replace class tables by the dual concept of class table requirements and class table operations by dual operations on class table requirements. We prove the equivalence of FJu0027s type system and our co-contextual formulation. Based on our formulation, we implemented an incremental FJ type checker and compared its performance against javac on a number of realistic example programs. |
Year | Venue | Field |
---|---|---|
2017 | ECOOP | ENCODE,Programming language,Functional programming,Type checking,Computer science,Theoretical computer science,Equivalence (measure theory),Java |
DocType | Citations | PageRank |
Conference | 0 | 0.34 |
References | Authors | |
0 | 5 |
Name | Order | Citations | PageRank |
---|---|---|---|
Edlira Kuci | 1 | 4 | 1.87 |
Sebastian Erdweg | 2 | 461 | 33.21 |
Oliver Bracevac | 3 | 4 | 0.86 |
Andi Bejleri | 4 | 21 | 4.31 |
Mira Mezini | 5 | 3171 | 211.04 |