[comp.lang.scheme] Multiple values

mkatz@SESAME.STANFORD.EDU (Morris Katz) (08/25/89)

In my mind, Kent has not really pointed out a defect in accepts, but rather one
in the parameter specification mechanism in Scheme.  His example should really
be written using some form of optional argument specification mechanism.
His code would go from
	(lambda (a b . rest)
	  (if (> (length rest) 2)
	      (error ...)
	      (let ((c (car rest))
		    (d (cadr rest)))
		.... c .... d ....)))
to
	(lambda (a b #optional c d)
		.... c .... d ....)))

In the past, the Scheme community has refused to agree on a manner for
specifying optional arguments.  Maybe it is time to reinitiate a discussion on
this topic.

OK everyone, you can start flaming at me now!!!
-------------------------------------------------------------------------------
Morry Katz
katz@polya.stanford.edu
-------------------------------------------------------------------------------