Sciweavers

APLAS
2006
ACM

Scheme with Classes, Mixins, and Traits

13 years 10 months ago
Scheme with Classes, Mixins, and Traits
Abstract. The Scheme language report advocates language design as the composition of a small set of orthogonal constructs, instead of a large accumulation of features. In this paper, we demonstrate how such a design scales with the addition of a class system to Scheme. Specifically, the PLT Scheme class system is a collection of orthogonal linguistic constructs for creating classes in arbitrary lexical scopes and for manipulating them as first-class values. Due to the smooth integration of classes and the core language, programmers can express mixins and traits, two major recent innovations in the object-oriented world. The class system is implemented as a macro in terms of procedures and a record-type generator; the mixin and trait patterns, in turn, are naturally codified as macros over the class system. 1 Growing a Language The Revised5 Report on the Scheme programming language [20] starts with the famous proclamation that “[p]rogramming languages should be designed not by pili...
Matthew Flatt, Robert Bruce Findler, Matthias Fell
Added 13 Jun 2010
Updated 13 Jun 2010
Type Conference
Year 2006
Where APLAS
Authors Matthew Flatt, Robert Bruce Findler, Matthias Felleisen
Comments (0)