DEV Community

Discussion on: Why Clojure?

Collapse
 
cappe987 profile image
Casper

Interesting article. I too am a huge fan of types and static typechecking. I dislike Python and JS for that reason. But Clojure has really piqued my interest. I haven't tried it yet and I still have my doubts regarding the dynamic nature of it. I will probably try it once I have time, I'm somewhat looking forward to it.

Collapse
 
kspeakman profile image
Kasey Speakman • Edited

This talk has a pretty compelling explanation about types with spec. The link starts 9 minutes in where he begins to address typing. Quick background: he explains "systemic generality" earlier in the video. But it is basically instead of specific types, in Clojure you use maps (dictionaries with named keys) and vectors (lists) for everything.