• Cite Icon12
  • https://doi.org/10.1145/2518189Copy DOI Icon

Contracts for First-Class Classes

Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

First-class classes enable programmers to abstract over patterns in the class hierarchy and to experiment with new forms of object-oriented programming such as mixins and traits. This increase in expressive power calls for tools to control the complexity of the software architecture. A contract system is one possible tool that has seen much use in object-oriented programming languages, but existing contract systems cannot cope with first-class classes. On the one hand, the typical contract language deals only with plain values such as numbers, while classes are higher-order values. On the other hand, contract specifications are usually contained within class definitions, while classes as values call for a separate contract language. This article presents the design and implementation of a contract system for first-class classes as well as a two-pronged evaluation. The first one states and proves a “blame correctness” theorem for a model of our language. The theorem shows that when the contract system assigns blame to a component for a contract violation, the component is indeed responsible for providing the nonconforming value. The second part, consisting of benchmarks and case studies, demonstrates the need for the rich contract language and validates that our implementation approach is performant with respect to time.

Similar Papers
  • Conference Article
  • Citations9

Typed First-Class Traits

  • Jan 01, 2018
  • DROPS (Schloss Dagstuhl – Leibniz Center for Informatics)
  • Xuan Bi +1
  • Conference Article
  • Citations23

Contributions to teaching object-oriented design and programming

  • Sep 01, 1989
  • K J Lieberherr +1
  • Conference Article
  • Citations10

On the syllogistic structure of object-oriented programming

  • Jul 01, 2001
  • Derek Rayside +1
  • Supplementary Content

Costrutti ed Applicazioni di Programmazione Generica in Linguaggi Object-Oriented

  • Apr 30, 2010
  • AMS Dottorato Institutional Doctoral Theses Repository (University of Bologna)
  • Maurizio Cimadamore
  • Supplementary Content
  • Citations1

Economic analysis of scaling up HIV prevention interventions in Southern India

  • Jan 01, 2006
  • LSHTM Research Online (London School of Hygiene and Tropical Medicine)
  • Lorna Guinness
  • Conference Article
  • Citations66

Gradual typing for first-class classes

  • Oct 19, 2012
  • Asumu Takikawa +4
  • Research Article
  • Citations63

IContractML 2.0: A domain-specific language for modeling and deploying smart contracts onto multiple blockchain platforms

  • Apr 01, 2022
  • Information and Software Technology
  • Mohammad Hamdaqa +2
  • Research Article
  • Citations20

Rosette: An object-oriented concurrent systems architecture

  • Sep 26, 1988
  • ACM SIGPLAN Notices
  • C Tomlinson +5
  • Conference Article

Speeding-Up Physical Systems Modeling with Object-Oriented Programming

  • Sep 22, 2015
  • SAE technical papers on CD-ROM/SAE technical paper series
  • Tiago Priolli Monteiro +2
  • Conference Article

Design By Contract Methodology

  • Sep 01, 2018
  • P.V.R Murthy
  • Research Article
  • Citations7

Design and implementation of a CIM information system

  • Mar 01, 1994
  • Engineering with Computers
  • Bipin Chadha +2
  • Conference Article
  • Citations9

Class hierarchy based metric for object-oriented design

  • Aug 22, 1994
  • Chi-Ming Hung +2
  • Single Report

An Overview of the Architecture for WE 1.0

  • Sep 01, 1988
  • Paulette E Bush +4
  • Book Chapter

Object-Oriented Programming

  • Jan 01, 2009
  • Conference Article
  • Citations4

OBJECT-ORIENTED APROACH TO MODELING AND ANALYSIS OF TRUSS STRUCTURES

  • Apr 19, 1993
  • Mitsunori Miki +1
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.