[racket] proposal: mixin-lang?

From: Danny Yoo (dyoo at cs.wpi.edu)
Date: Thu Jun 16 17:20:23 EDT 2011

> May I propose a somewhat more modest but more useful concrete goal?
> It would be fantastic if we could create teaching languages via
> the composition of language fragments. Some could be mixins, some
> could be traits, some could be ... whatevers.

Quick-and-dirty prototype done and posted on PLaneT.

If we create the following file "my-big-language.rkt"

#lang planet dyoo/compose-lang

it will create a composite language that exports all of racket/base,
racket/port, and racket/unit.  It can then be used as a module language, so

#lang s-exp "my-big-language.rkt"
(unit (import) (export))

does as expected.

Is this what you mean?

Posted on the users mailing list.