I enjoy reading about different programming languages. I am currently studying Scala, but that does not mean that I am not interested in Groovy, Clojure, Python and many others. All these languages have a unique appearance and some characteristic features. In the case of Clojure, I do not understand one of these design decisions. As far as I know, Clojure pays much attention to its functional paradigm and pretty much forces you to use immutable "variables" where possible. So, if half of your values are immutable, why is the language dynamically typed?
Clojure website reports:
First of all, Clojure is dynamic. This means that Clojure is not just what you compile and run, but something you can interact with.
Well, that sounds totally weird. If the program is compiled, you can no longer change it. Of course, you can "interact" with it, for which user interfaces are used, but a website definitely does not mean a neat "dynamic" graphical interface.
How Clojure Benefits from Dynamic Typing
I mean the special case of Clojure, and not the general advantages of dynamic typing.
How a dynamic type system helps improve functional programming
Again, I know the pleasure of not spilling "int a" all over the source code, but type inference can ease most of the pain. So I just wanted to know how dynamic typing supports the concepts of a functional language.
dynamic language-design functional-programming clojure paradigms
lhk Feb 24 2018-11-21T00: 00Z
source share