logoalt Hacker News

midnight_eclairtoday at 1:50 PM1 replyview on HN

> Clojure style discourages building DSLs

does it really? https://github.com/simongray/clojure-dsl-resources


Replies

embedding-shapetoday at 4:33 PM

I think you're talking past each other.

"DSLs" can both mean "Using the language's variant of 'arrays' to build a DSL via specific shapes" like hiccup in Clojure does, and also "A mini-language inside of a program for a specific use case" like Cucumber is its own language for acceptance testing, but it's "built in in Ruby" in reality.

Clojure favors the "DSLs made out of shapes" rather than "DSLs that don't look/work like lisp inside of our programs".

show 1 reply