kirancodes.me
To Proof Maintenance & Beyond!

Type-Safe Monotonic Object Evolution

Alexandra Mirrlees-Black, Haoyu Wu, Gregor Richards, Fabian Muehlboeck

Abstract

Object evolution is a monotonic approach to typestate and object reclassification, enforcing that objects may gain, but not lose properties, to permit aliasing. We present a formalization and prototype implementation of our new language May , featuring inheritance-based evolution that changes the run-time class of an object to a subclass. To statically guarantee evolution succeeds, we introduce a simple affine permission system for ensuring evolvable references match the run-time type of an object. Furthermore, we demonstrate that our system provides an effective and type-safe way of expressing staged operations and complex initialization procedures.

Related papers