4 ms·
Have you got a good example where Lisp macros would work but standard Haskell would "fail"? I've done some compiler work in Haskell like writing programs (sema
by egonk 14y ago
Have you got a good example where Lisp macros would work but standard Haskell would "fail"?
I've done some compiler work in Haskell like writing programs (semantic actions) as algebraic data structures and then transforming or interpreting the tree. Would I gain something by using Lisp macros in this instance?
- tome 14y agoMany of Lisp's uses of macros can be replicated in Haskell by taking advantange of lazy evaluation. This is enough for most needs I've ever had, but some things still need the macro system that Template Haskell provides. Deriving lenses from type declarations is one of the up-to-the minute uses.
- kd0amg 14y agoHave you got a good example where Lisp macros would work but standard Haskell would "fail"? http://people.csail.mit.edu/gregs/ll1-discuss-archive-html/msg01539.html http://people.csail.mit.edu/gregs/ll1-discuss-archive-html/m...