I apologize if this has been asked before but I can't find anything about it in the archives or googling.
Is there something like Lisp's macroexpand-1 for MIT Scheme? It's quite hard to debug my first macros. How do you guys debug your macros?
Currently I'm just playing around with a macro to define hashes. I want to transform:
(hash '(a 1 b 2))
Into:
((lambda ()
(let ((t make-strong-eq-hash-table))
(hash-table/put! t 'a 1)
(hash-table/put! t 'b 2)
t)))
For that I worked on
this macro, which doesn't work and I'd really love to be able to debug! The idea of the macro is to return a self-executable lambda which returns a reference to a hash-table.
Thanks for your time!