[racket] How to handle #??? from #%declare

From: Asumu Takikawa (asumu at ccs.neu.edu)
Date: Sat Mar 1 12:25:48 EST 2014

Hi all,

I have a question about the recently added #%declare form for modules.
Here's an example expansion for context:

  -> (syntax->datum (expand #'(module a racket (#%declare "something"))))
  '(module a racket
     (#%module-begin
      (module configure-runtime '#%kernel
        (#%module-begin (#%require racket/runtime-config) (#%app configure '#f)))
      #???))

It appears that an invalid(?) #%declare form gets expanded to a #???.
This object is apparently not a symbol, so is there any sensible way to
handle one of these in a macro that inspects a whole module?

Cheers,
Asumu

Posted on the users mailing list.