[plt-scheme] class.ss
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... :)
--
http://www.neilvandyke.org/