European Symposium on Programming

ESOP 2009: Programming Languages and Systems pp 1-16

Well-Typed Programs Can’t Be Blamed

  • Philip Wadler
  • Robert Bruce Findler
Conference paper

DOI: 10.1007/978-3-642-00590-9_1

Volume 5502 of the book series Lecture Notes in Computer Science (LNCS)

Abstract

We introduce the blame calculus, which adds the notion of blame from Findler and Felleisen’s contracts to a system similar to Siek and Taha’s gradual types and Flanagan’s hybrid types. We characterise where positive and negative blame can arise by decomposing the usual notion of subtype into positive and negative subtypes, and show that these recombine to yield naive subtypes. Naive subtypes previously appeared in type systems that are unsound, but we believe this is the first time naive subtypes play a role in establishing type soundness.

Download to read the full conference paper text

Copyright information

© Springer-Verlag Berlin Heidelberg 2009

Authors and Affiliations

  • Philip Wadler
    • 1
  • Robert Bruce Findler
    • 2
  1. 1.University of Edinburgh 
  2. 2.University of Chicago