Explore macros in a circuit using Lisp

I really want to learn Scheme macros. I looked at the contents of "On Lisp", and many chapters were devoted to Lisp macros. However, I do not know the general lisp. Can I use it to study schema macros?

+4
source share
2 answers

Schema macros ("hygiene macros") are completely different from traditional Lisp macros. Some Schema implementations offer Lisp macros in addition to Scheme macros, but this is not required by the Schema standard.

I would recommend you look for tutorials related to Scheme macros if you want to learn about this macro style. Google shows many pages offering an introduction to Scheme macros.

+10
source

Re: Nathan Sanders

Lisp is definitely worth a read; You get an idea of ​​macro style and some interesting solutions to problems. In addition, you will find that it is better to understand the problem that hygiene macros solve.

I can’t comment yet, or I would do it in the ranks.

+5
source

Source: https://habr.com/ru/post/1285782/


All Articles