Contracts for First-Class Classes

Source: Association for Computing Machinery

Favorite

Free registration required

First-class classes add expressive power to class-based object-oriented languages. Most importantly, programmers can abstract over common scenarios with first-class classes. When it comes to behavioral software contracts, however, first-class classes pose significant challenges. In this paper, the authors present the first contract system for a programming language with first-class classes. The design has been implemented for Racket, which supports first-class classes and which implements mixins and traits as syntactic sugar. They expect that the experience also applies to languages with native mixins and/or traits.
Format:PDF Size:290.80
Date:Oct 2010