5 ms·
I can't help love the power of real macros, though. Can you get something like loop to work in Scheme? To me that's just part of the beauty of Common Lisp. Whi
by PieSquared 17y ago
I can't help love the power of real macros, though. Can you get something like loop to work in Scheme?
To me that's just part of the beauty of Common Lisp. While it is rather ugly in some places, it has these nuggets of just pure gold.
(I actually do not know scheme well enough to say. Are such complicated macros possible in it?)
- eru 17y agoSee http://docs.plt-scheme.org/mzlib/mzlib_defmacro.html http://docs.plt-scheme.org/mzlib/mzlib_defmacro.html (And I would not want to do loop in Scheme. That's just too imperative. Interestingly Haskell's special syntax for Monads and its lazyness makes the need for most macros / special forms go away (though not for all, and Haskell has plenty of syntax on the surface).) Consider that Paul Graham, the author of the fine book "On Lisp", chose PLT Scheme to implement Arc on top.
- garnet7 17y agoIIRC, they didn't choose PLT (over other Schemes) for any particularly compelling reasons.