3 ms·
You get immutability for free with Clojurescript which is a bigger win than types but if you must have types there's Clojurescript spec now: http://cljs.git
by cutler 8y ago
You get immutability for free with Clojurescript which is a bigger win than types but if you must have types there's Clojurescript spec now:
http://cljs.github.io/api/cljs.spec.alpha/
- lgessler 8y agoAdding to your point, spec goes beyond the power of a (garden variety) type system, since it does its work at runtime. This of course incurs a performance hit, but you can easily exclude these checks in a prod build just by setting a compiler flag.