3 ms·
The "NodeSeq -> NodeSeq" implicit construction method that DPP uses for his designer-friendly templates works so well because of the type system, yeah. Which i
by KirinDave 16y ago
The "NodeSeq -> NodeSeq" implicit construction method that DPP uses for his designer-friendly templates works so well because of the type system, yeah.
Which is not to say Enlive doesn't tackle the problem head on with a lot of solid syntax. It's just the forms like clone-for aren't everywhere, and so the second you leave the comfort zone of the syntax you lose a lot of the elegance.
This is the tradeoff between the two language approaches. The static type can carry it's DSL on its back implicitly, whereas the macro approach requires an explicit lexical tag.