Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write a debugger macro walkthrough. #179

Open
gilch opened this issue Feb 6, 2023 · 0 comments
Open

Write a debugger macro walkthrough. #179

gilch opened this issue Feb 6, 2023 · 0 comments
Labels
docs Explanation

Comments

@gilch
Copy link
Owner

gilch commented Feb 6, 2023

Lisp code can be instrumented by rewriting it with a macro. I think CIDER does something similar for Clojure. It has always been the plan to demonstrate how to do code-walking macros in the Hissp documentation; the TODO has been in there for a while now. Ease of writing code-walking macros is also one of the stated benefits of Hissp having only two special forms.

The bundled macros do currently include spy# for debugging, and, of course, the Python debugger works fine on the compiled Python. Like the function literal macro, a debugging macro would probably be too complex to bundle, but a simple one probably wouldn't be too complex for a walkthrough. I think we could at least step through expressions and inspect locals.

#173 would have to happen first.

@gilch gilch added the docs Explanation label May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Explanation
Projects
None yet
Development

No branches or pull requests

1 participant