4 ms·
"particularly clojure libraries, that make heavy but judicious use of macros" Try the Clojure standard libraries. Many central parts of the language like "->>"
by leephillips 13y ago
"particularly clojure libraries, that make heavy but judicious use of macros"
Try the Clojure standard libraries. Many central parts of the language like "->>" are macros.
- auvrw 13y agooh, yes, indeed, the ->> macro is slick. reminds me of the bind operator in haskell. i don't know why i haven't seen something like it in other lisps. but as you said, that's part of the language. anyway, should clarify: i'm interested in libraries that define and then use lots of macros in order to solve a specific problem. i'd like to know what problem domains are particularly well suited to the sort of language extension that macros provide.
- masklinn 13y ago> but as you said, that's part of the language. Well no since it's a macro. It's part of the standard library, not a special form part of the language.
- TeMPOraL 13y agoThe point of macros is to blur the distinction between what's "built-in" and what's "user-defined" to the point of irrelevancy.
- greghendershott 13y agoFor example, threading macros in Racket: https://github.com/greghendershott/rackjure/blob/master/rackjure/threading.rkt https://github.com/greghendershott/rackjure/blob/master/rack...