Re:Reader macros in Common Lisp
by sklogic on Monday October 19, 2015 @09:24AM
(#10412718)
A well-designed DSL should be self-documenting and obvious. And the right tools (like a proper IDE integration, with syntax highlighting and autocompletion) would make such a DSL much more obvious than a library of functions (which still must be thoroughly documented to be usable).
[ Parent
| on HN ]
A well-designed DSL should be self-documenting and obvious.
ROFL. You're adorable. :)
You're also conveniently ignoring the maintenance required on the DSL itself. DSLs are, themselves, code, and code must be tested, updated, will likely experience regressions, etc.
I've been building properly designed, syntactically rich DSLs for over a decade. It is much, much easier than building usable APIs.
DSL compilers are the simplest and cleanest code possible. They're nothing but a chain of very trivial tree rewrites, and with a help of a proper DSL you can write and maintain them easily.