gerbil icon indicating copy to clipboard operation
gerbil copied to clipboard

Implement &allow-other-keys

Open fare opened this issue 2 months ago • 3 comments

Common Lisp has &allow-other-keys wherein a function can accept keyword arguments it recognizes, yet also record all the keyword arguments it is given, even those it doesn't recognize, so as to pass them to further functions it calls with apply. We should implement this functionality, useful in various OO protocols (but not only): https://www.lispworks.com/documentation/HyperSpec/Body/03_da.htm

fare avatar Oct 06 '25 23:10 fare

@vyzo Where do I find the code that handles keyword arguments, both in the runtime and the compiler?

fare avatar Oct 07 '25 00:10 fare

in the prelude and runtime (keyword-diapatch).

We can use the dssl objects for this marking in the lambda signature, #!key #!rest #!optional.

vyzo avatar Oct 07 '25 07:10 vyzo

compiler is in various places.

vyzo avatar Oct 07 '25 07:10 vyzo