[plt-scheme] class.ss

From: Neil W. Van Dyke (neil at neilvandyke.org)
Date: Fri Jan 17 22:10:55 EST 2003

Are there any plans to add generic functions, multiple dispatch, and
similar features to "class.ss"?

Eli Barzilay's Swindle probably does what I want, but using a standard
object system makes sharing code easier.

Actually, simply having "class.ss" define a standard "define-generic"
macro that defines a procedure (or perhaps syntax) that hands off to
"send" for single-dispatch would make syntax prettier:

    (define-generic (foo (a-bar %bar) ...))

    (foo x y z)  =equiv=>  (send x foo y z)

Though ideally this generic function syntax would be defined
automatically, for all method operation names, which would probably
create namespace problems.

I keep wanting "send" to mean an asynchronous message... :)


Posted on the users mailing list.