[plt-scheme] syntax-e on box and hash

From: jos koot (jos.koot at telefonica.net)
Date: Tue Mar 20 08:41:38 EDT 2007

Hi,
The docs on syntax-e do not describe what they return for #'#&x or
#'#hash((x . y)). I found the following

;Welcome to DrScheme, version 369.8-svn19mar2007 [3m].
;Language: Textual (MzScheme, includes R5RS) custom.
(unbox (syntax-e #'#&x)) ;--> syntax
(syntax-e (unbox (syntax-e #'#&x))) ;--> x
(syntax-e #'#hash((x . y))) ;--> #<hash-table>
(hash-table-map (syntax-e #'#hash((x . y))) cons) ;--> ((x . y))
(hash-table-map (syntax-e #'#hasheq((x . y))) cons) ;--> ((x . y))

To me this seems inconsistent, but may be there is a specific reason for syntax-e to show the contents of a hash-table unwrapped from syntaxes.
Is there?
Jos koot

(((((lambda(x)((((((((x x)x)x)x)x)x)x)x))
    (lambda(x)(lambda(y)(x(x y)))))
   (lambda(x)(x)x))
  (lambda()(printf "Greetings, Jos~n"))))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20070320/2ca2dc28/attachment.html>

Posted on the users mailing list.