|
|
|
|
|
by kazinator
1018 days ago
|
|
According to the article, the alternative to DSL is the programming language. So what the author understands as a DSL is some special-purpose language that is self-contained with its own run-time such that you have to string multiple of these to solve the task. Possibly, the author might have The article doesn't discuss the possibility of building DSLs with the programming language and using them, all integrated together. Yes, CSS is crap for instance. The web should have one language for everything in which styling is a DSL. Regular expressions are better when they are in your language: 2> (regex-compile '(0+ (or "a" "b")))
#/(a|b)*/
E.g. we can cleanly stick something into a regex's syntax tree without worrying about escaping: 3> (regex-compile '(0+ (or "*" "b")))
#/(\*|b)*/
4> (let ((x "[")) (regex-compile ^(0+ (or ,x "b"))))
#/(\[|b)*/
|
|