Ask HN: A real-life use case for Lisp macros that beginners can understand?

https://news.ycombinator.com/item?id=21809786
by cloogshicer • 7 years ago
5 7 7 years ago

I'm a novice in Lisp (specifically Clojure) and I got interested in the language because of the macro system.

However, all the examples I've seen so far seem pretty convoluted and just made me think "Why would I want to do that?". I think I just didn't "get" it yet.

Is there a simple real-life example that shows the usefulness of the Lisp macro system to a beginner?

Related Stories

Loading related stories...

Source preview

news.ycombinator.com