Type-Safe Monotonic Object Evolution (Technical Report)

Alexandra Mirrlees-Black, Wu, Haoyu, Gregor Richards et al. · 2026

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.

Cited by 1 works. doi:10.25911/saaj-je93

Authors