DEV Community

loading...

Discussion on: try Scheme instead of JavaScript for UI

Collapse
deciduously profile image
Ben Lovy

Yes and yes, both great points. You indeed compile CLJS to JS, it uses the Google closure compiler under the hood. This is both a pro and a con - it's nice that what you ultimately ship is just plain ol' ES5 JS, but you do need a build step. The lisp is just for the developer.

Scheme is also much more minimal than Clojure. They do have different design goals. I like Clojure's built-in fancy stuff, the rich set of data types alone is a selling point over Scheme for me. There is objectively more language, though, so it depends on your goals and personal taste.