2 ms·
My take is that all embedded DSLs are bad. By embedding your DSL in another language you might gain certain things for free, but you also sacrifice a lot of con
by dybber 3y ago
My take is that all embedded DSLs are bad. By embedding your DSL in another language you might gain certain things for free, but you also sacrifice a lot of control and often extra boilerplate code is necessary.
The exception of course is Lisp where embedded languages can feel like standalone languages.
- dybber 3y agoStated in another way: standalone are sometimes bad, but embedded DSLs are almost always bad.
- devonkim 3y agoFrom what I’ve heard of and used myself LINQ works pretty well as an embedded DSL because it’s more like a language extension with some solid semantics rather than a classic embedded DSL that is not terribly far from transpilers