[racket] Is this a bug in procedure 'primitive?' ?

From: Harry Spier (vasishtha.spier at gmail.com)
Date: Sun May 13 00:20:35 EDT 2012

When I try primitive? I get the following results:

> (primitive? +)
#t
> (primitive? (thunk +))
#f
> (primitive? cons)
#t
> (primitive? values)
#t
> (primitive? thunk)
. thunk: bad syntax in: thunk
> (primitive? let)
. let: bad syntax in: let
> (primitive? lambda)
. lambda: bad syntax in: lambda
> (primitive? +)
#t
> (primitive? cons)
#t
> (primitive? let)
 let: bad syntax in: let
> (primitive? thunk)
. thunk: bad syntax in: thunk
> (primitive? (thunk (+ 1 2)))
#f

Where I get the "bad syntax " error messages instead of #f  is this a
bug or is this the desired behavior?

Thanks,
Harry

Posted on the users mailing list.