[plt-scheme] keyword arguments (in v4.0, maybe)

From: Robby Findler (robby at cs.uchicago.edu)
Date: Wed Jun 13 05:25:21 EDT 2007

On 6/12/07, Eli Barzilay <eli at barzilay.org> wrote:
> On Jun 12, Robby Findler wrote:
> > Here's another question (which I think your macro expansion message
> > may have answered implicitly, I'm not sure): what happens when I do
> > something like this:
> >
> >   (lambda args (printf "~s\n" args) (apply f args))
> >
> > and I apply that procedure to keyword arguments? Will I see the
> > keywords,
>
> This is what happens now, since they are plain arguments.
>
>
> > or will #%app, apply and lambda conspire to make them invisible but
> > still somehow transmitted to `f'?
>
> This would be a solution to the `apply' problem -- I've been trying to
> find such a solution, but nothing reasonable so far.
>
>
> > If I can see them, will I be able to manipulate them before passing
> > them to `f'?
>
> You won't be able to see them -- and the problem that I'm talking
> about is that you won't be able to accept them.  This procedure will
> simply barf if given keyword arguments.  (At least IIUC, and I think I
> do...)  The bottom line is that this procedure is sort-of like a
> traced `f' except that it does not accept keyword arguments at all.
> (More in a separate message.)
>

You and Matthew seem to be in direct contradiction on this point.

Robby


Posted on the users mailing list.