by hellofunk · 9y ago · 0 comments
I am griping, really, because I cannot stress enough how nice it feels most of the time to write Clojurescript. But in complex projects, there is not doubt that a lot of time gets spent on things that wouldn't need to be spent if the language had even a very basic type system to back up the syntax for some things.
Also, my experience with Rails really has me fearful of doing any serious, big work, in a dynamic language.
also isn't clojure.spec useful for describing and asserting the shape of data taken and returned by functions?
Also there is not a good answer for asserting the value of a function passed to another function; the return values of functions can be spec'd but they are not included in an assert test.
I agree this is a shortcoming, but that is why this library exists: https://github.com/jeaye/orchestra