This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: `define' madness


> I am getting fed up with the `define' construct. I miss the
> flexibility of &optional and &keys. Dereferencing an `. args' by hand
> just isn't funny.
> 
> Has anybody heard about, considered or worked on a traditional style
> defun macro for scheme?

A number of Scheme dialects, including DSSSL, Kawa, and (I believe) Bigloo
support #!optional #!rest and #!key parameter specifications.
See http://www.cygnus.com/~bothner/kawa/kawa_7.html.  This
syntax has the advantage that it is part of an ISO standard for a
Scheme variant (DSSSL).  So I would recommend following it, rather
than following Common Lisp.

	--Per Bothner
Cygnus Solutions     bothner@cygnus.com     http://www.cygnus.com/~bothner