Safer Exceptions for Scala

Abstract

We describe a scheme for reflecting exceptions as capabilities in the Scala type system that keeps notational overhead to a minimum and avoids well-known problems with Java’s checked exceptions framework. The scheme makes exceptions safer but not fully safe since the capability for throwing an exception may still yet escape its enclosing try block. To address this limitation, we also propose a type system which prevents capabilities from escaping.

Publication
In Scala Symposium 2021
Edward Lee
Edward Lee
PhD Student

I am a PhD student in programming language theory at the University of Waterloo.