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

And that "proper usage" is basically "never".

I remember a lot of macros-based libraries early, however it turned out they are not composable, so they grew a plain functions-and-data interface. New libraries don't use macros much.

AFAICT the role of macros in modern Clojure is limited to new control constructs.



Early clojure reflected a bit early macro-enabled compiled lisps where macros were heavily used due to (perceived) cost of function call.


But in that case what is the benefit of Clojure being a Lisp?




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

Search: