wisp-lang / wisp

A little Clojure-like LISP in JavaScript
https://gozala.github.io/wisp/
Other
982 stars 68 forks source link

User macros aren't/can't be reset #142

Open thatismatt opened 8 years ago

thatismatt commented 8 years ago

Hi,

I'm using wisp via the webpack loader (https://github.com/girvo/wisp-loader) and noticed that a webpack --watch will happily compile deleted macros.

This is because macros are stored in the global **macros** in wisp.expander. So it'd be great if there was either a way of getting a "fresh" compiler or "resetting" that global to remove the user defined macros.

I'm happy to try and fix this if someone can point me at the correct solution.

Thanks, Matt

PS thanks for wisp, it is great :)