Macros, clojure vs common lisp

前端 未结 5 1967
无人及你
无人及你 2021-02-02 13:58

A few of my friends and I are working on a new platform and we want to build it in lisp. The main attraction are macros. We all use Common Lisp but I want to explore the option

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-02 14:16

    Clojure Macros have some advantages:

    • accidental symbol capture is hard because it namespace expands symbols
    • other peoples reader macros wont bite you (not your's or course, im talking about that other guy ;))
    • autogensyms takes a LOT of the clutter out of writing hygenic macros.

提交回复
热议问题