SPLASH 2021
Sun 17 - Fri 22 October 2021 Chicago, Illinois, United States
Fri 22 Oct 2021 14:20 - 14:35 at Zurich D - Types & Verification Chair(s): Leonidas Lampropoulos
Fri 22 Oct 2021 22:20 - 22:35 at Zurich D - Types & Verification -- mirror Chair(s): Atsushi Igarashi

Gradual typing is a principled means for mixing typed and untyped code.
But typed and untyped code often exhibit different programming patterns.
There is already substantial research investigating gradually giving types to code exhibiting typical untyped patterns, and some research investigating gradually removing types from code exhibiting typical typed patterns.
This paper investigates how to extend these established gradual-typing concepts to give formal guarantees not only about how to change types as code evolves but also about how to change such programming patterns as well.

In particular, we explore mixing untyped "structural" code with typed "nominal" code in an object-oriented language.
But whereas previous work only allowed "nominal" objects to be treated as "structural" objects, we also allow "structural" objects to dynamically acquire certain nominal types, namely interfaces.
We present a calculus that supports such "cross-paradigm" code migration and interoperation in a manner satisfying both the static and dynamic gradual guarantees, and demonstrate that the calculus can be implemented efficiently.

Fri 22 Oct

Displayed time zone: Central Time (US & Canada) change