Proceedings of the ACM on Programming Languages · 2019 · 13 citations · 8 references
ComputingComputer ScienceFormal MethodsProgramming LanguagesTheory Of ComputationData TypesObject-oriented ProgrammingRecursion TheoryType CheckingType SystemsDependent TypesPolymorphic Type SystemsPolymorphic TypesRecursive TypesSubtyping
Path dependent types have long served as an expressive component of the Scala programming language. They allow for the modelling of both bounded polymorphism and a degree of nominal subtyping. Nominality in turn provides the ability to capture first class modules. Thus a single language feature gives rise to a rich array of expressiveness. Recent work has proven path dependent types sound in the presence of both intersection and recursive types, but unfortunately typing remains undecidable, posing problems for programmers who rely on the results of type checkers. The Wyvern programming language is an object oriented language with path dependent types, recursive types and first class modules. In this paper we define two variants of Wyvern that feature decidable typing, along with machine checked proofs of decidability. Despite the restrictions, our approaches retain the ability to encode the parameteric polymorphism of Java generics along with many idioms of the Scala module system.
8
Scalable component abstractions
Martin Odersky, Matthias Zenger · 2005 · 251 citations · Full text
Bounded quantification is undecidable
Benjamin C. Pierce · 1992 · 65 citations · Full text
Type soundness for dependent object types (DOT)
Tiark Rompf, Nada Amin · 2016 · 59 citations · Full text
Foundations of path-dependent types
Nada Amin, Tiark Rompf, Martin Odersky · 2014 · 52 citations · Full text
On understanding data abstraction, revisited
William R. Cook · ACM SIGPLAN Notices · 2009 · 48 citations