[racket] Evaluation at compile time

From: Tony Garnock-Jones (tonyg at ccs.neu.edu)
Date: Wed Jun 8 13:28:49 EDT 2011

On 2011-06-08 1:23 PM, Tony Garnock-Jones wrote:
> I would like to read in a JSON file at compile time, converting it to
> SJSON, to avoid doing so at runtime. Here's what I've come up with so
> far. Is there a more elegant way? Perhaps an (at-compile-time <expr>)
> form? -- Tony

And for extra bonus points, how might I add uci-descriptions.js to the 
list of dependencies of uci_rkt.zo, so that raco make knows uci.rkt 
needs recompiling if either uci.rkt or uci-descriptions.js changes?

Tony


Posted on the users mailing list.