| ▲ | dgb23 2 hours ago | |
You linked me to this comment from another one and I have to agree with this sentiment. Creating these mini DSLs is something that requires a lot of thought and good design. There is a danger here as you pointed out sharply. But I have some caveats and counter examples: I would say the danger is greater when using macros and far less dangerous when using data DSLs. The Clojure community has been moving towards the latter since a while. There are some _very good_ examples of (data-) DSLs provided by libraries, such as hiccup (and derived libraries), reitit, malli, honeysql, core match, spec and the datalog flavor of Clojure come to mind immediately (there are more that I forget). In many cases they can even improve performance, because they can optimize what you put into them behind the scenes. | ||
| ▲ | midnight_eclair an hour ago | parent [-] | |
so many similar conversations happening, it's refreshing xD | ||