Back to search

Hong Kong University of Science and Technology

Modular programming through precise typing of open recursion

Abstract

dc:description

<p>We present a new variation of object-oriented programming built around three simple and orthogonal constructs: classes for storing object state, interfaces for expressing object types, and mixins for reusing and overriding implementations. We show that the latter can be made uniquely expressive by leveraging a novel feature that we call precisely-typed open recursion. This features uses this and super annotations to express the requirements of any given partial method implementation on the types of respectively the current object and the inherited definitions. Crucially, the fact that mixins do not introduce types nor subtyping relationships means they can be composed even when the overriding and overridden methods have incomparable types. Together with advanced type inference and structural typing support provided by the MLscript programming language, we show that this enables an elegant and powerful solution to the Expression Problem.</p>

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Fan, Andong
Contributors dc:contributor
  • Parreaux, Lionel

Rights

Language dc:language
English

Identifiers

dc:identifier.*

Chain of custody

source
Harvested from
Hong Kong University of Science and Technology
Base URL
repository.ust.hk/ir/OAI/Server
Last updated
2026-11-26
Source record
OAI-PMH GetRecord
related terms
citation

Fan, Andong. Modular programming through precise typing of open recursion. 2024. http://repository.hkust.edu.hk/ir/Record/1783.1-143315