[plt-scheme] PLT 399, keyword arguments and SRFI 26

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Fri Jan 18 14:26:20 EST 2008

At Fri, 18 Jan 2008 12:18:09 -0700, Matthew Flatt wrote:
> 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.

Oops -- I take it back. It must be the different `#%app' in `mzscheme',
not the different `lambda'.

Matthew



Posted on the users mailing list.