arXiv.itsnick.co

an independent field guide to 23 million papers from arXiv & OpenAlex — not affiliated with arXiv.org

Computer Science · Artificial Intelligence

Variant Ownership with Existential Types

Nicholas Cameron, Sophia Drossopoulou

· Archives of Disease in Childhood

See on the map

Abstract

We propose an ownership types system with existential quantification of owners, similar to the existential quantification of types in models of Java wildcards. This produces a system with variant ownership types. Using explicit existential types for variance is more expressive, less ad hoc, and easier to understand and reason about than previous solutions. Furthermore, we propose using both type and ownership parameters to increase the precision with which variant types can be specified. 1. Background Ownership types (in all their various flavours, e.g., [5]) allow for the structuring of objects in the heap according to some tree or graph. Each object has an owner, denoted as part of the object’s type. A type may also be parameterised

More like this