[gambit-list] #!key behavior
adam.mlmb at gmail.com
Fri Dec 18 02:00:45 EST 2015
Sometimes, it can be useful to have a procedure that splices out some key
arguments and then passes on the remainder.
(define (outerproc #!key a b #!rest r)
(apply innerproc r))
(define (innerproc #!key c d)
Currently, doing (outerproc c: myvalue) causes runtime error "Unknown
keyword argument passed to procedure".
What's the motivation for this?
Would you feel that it could be relevant to include a |declare| that would
alter this behavior?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Gambit-list