A historic functional and object-oriented calculus

  • Authors:
  • Maribel Fernández;Fabien Fleutot

  • Affiliations:
  • King's College London, London, U.K.;King's College London, London, U.K.

  • Venue:
  • Proceedings of the 8th ACM SIGPLAN international conference on Principles and practice of declarative programming
  • Year:
  • 2006

Quantified Score

Hi-index 0.00

Visualization

Abstract

We present a functional object calculus which solves the traditional conflict between matching-based functional programming and object-oriented programming, by treating uniformly method invocations and functional constructor applications. The key feature of the calculus is that each object remembers its history, that is, the series of method calls that created it. Histories allow us to classify objects in a finer way than classes do. The resulting calculus has a simple syntax and is very expressive; we give examples. Finally, we define a type system for the calculus and show its soundness: typable programs do not produce matching or method-invocation errors