Skip to content

Comment on Ask HN: What does a developer need to know to build their own Lisp from scratch?parent

Comments

IMO call-with-cc AND regular macros is what one should implement for toy language. Hygienic macros are too hard to understand let alone implement, while ordinary macros are more powerful (and maintainability does not matter much for toy language) and relatively easy to implement. And call-with-cc is too fun to skip.

Hygienic macros are too hard to understand let alone implement, while ordinary macros are more powerful (and maintainability does not matter much for toy language) and relatively easy to implement.

Understanding hygienic macros isn’t all that hard but I agree implementing them is difficult. On multiple occasions I’ve tried to plan out how to get them to work but (ironically) everything I can find only explains the theory and not how to practically implement them.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.