wisp-lang / wisp

A little Clojure-like LISP in JavaScript

Home Page:https://gozala.github.io/wisp/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

User macros aren't/can't be reset

thatismatt opened this issue · comments

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 :)