r/Clojure • • Oct 24 '25

Learning from Racket, towards Clojure

Not so much a question, rather post for consideration and discussion. I have a decent familiarity with Clojure, but I do not use it professionally in my work. I am looking for opportunities for expanding my Clojure horizons, and some of the resources I am dipping into are books on Racket, specifically Essentials of Compilation [..in Racket] (Jeremy Siek) and How to Design Programs (Felleisen, Findler, Flatt, Kirshnamurthi). And of course in the Scheme world there is a wealth of info to learn from.

Initially, I was stumbling on some of the language differences between Clojure and Racket, Ex: Racket seems to prefer the use of (define <name> <value>) in the body of a function, over simply using let blocks in Clojure. At first this seemed like a bridge too far, but after a bit of reflection, not a big deal. Perhaps a bit more fundamental, Racket (or perhaps more accurately the DrRacket IDE) eschews interactive programming from the REPL. Again, not a barrier for learning from Racket, but a cultural difference worth noting. I would be interested in others take on this topic.

28 Upvotes

18 comments sorted by

View all comments

Show parent comment

2

u/chladni Oct 24 '25

deaddyfreddy thanks for your notes on my post. I would be interested in your take on looking to Racket books / resources for advancing an understanding of Clojure. Clearly there are some surface differences; I mentioned two examples. Of course there are other difference (eg. I always have a hard time writing cond expressions in CL and Scheme, having internalized Clojure). That being said, I like the idea of learning from the ~65 years of S-expression languages. And it is nice that Racket still has foothold in academia (certainly one particular university in Indiana).