[plt-scheme] PLT 399, keyword arguments and SRFI 26
At Fri, 18 Jan 2008 18:53:41 +0000, Dave Gurnell wrote:
> 8 (define add2
> 9 (cut add #:a <> #:b 2))
> 10
> 11 (display (add2 1))
>
> I get the following error message (in this example at line 9):
>
> #%datum: keyword used as an expression in: #:a
>
> It doesn't seem like this should cause a problem because AFAIK "cut"
> rewrites to a simple lambda. However, it did occur to me that the
> lambda in the mzscheme language (in which "cut.ss" is presumably
> written) is different to the lambda from scheme/base. Is this the
> source of the problem or am I barking up the wrong tree?
You're exactly right.
Matthew