Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Macros are a method to do programmatically what read can do lexically. Using macros avoids having to load strings into sexps and modify them and build callable constructs out of the modifications. With macros, you just define the modification as a transform on s-expressions and let the macro facility do the rest. The point is to modify the AST and while read can be abused to do that macros are designed to do just that.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: