4 ms·
Well, since the author asks so nicely, let me answer. I do not consider that code to be elegant. Just count how many possible errors you can make on a simple t
by marcosdumay 8y ago
Well, since the author asks so nicely, let me answer. I do not consider that code to be elegant.
Just count how many possible errors you can make on a simple templating DSL, and then count how many errors you can make on that dsDSL one. One is clearly better than the other.
I would say that all the problems enumerated there come from a bad selection of DSLs to study. It's perfectly understandable that the author chooses templating languages, and I don't know of any better templating DSL to put there, but that only evidences that we lack an actually good templating DSL (outside of the scope of Tex). That just shows that text templating is hard, not that DSLs are inherently problematic.
For evidence that the problem is not with the concept of DSLs itself, just try to write the same article using SQL as an example. You can't.