|
|
|
|
|
by another-one-off
2443 days ago
|
|
What looks bad about the ClojureScript example? I'm obviously a bit slow, but I can't see any practical difference between the two. I do prefer the ClojureScript because I don't know how to type "λ" and that seems like a usability handicap. Minor complaint I know. |
|
Clojure and by extension ClojureScript has a lot of tasteful and pragmatic design decisions, e.g. the use of the threading form and implicit lambda illustrated with the "+ 2").
By contrast Racket has been extended to include a Clojure-inspired threading as a library, showing off just a little of its awesome linguistic extensibility, leading in this case to ergonomically similar code.
Clojure/Script is a wonderful opinionated modern Lisp; Racket is a more linguistically extensible modern Lisp. There's considerable cross-fertilisation going on.
If you love Clojure, it's worth keeping an eye on Racket.
* * *
You can spell λ out as lambda in Racket (and Scheme).