Re:Static typing will not save us from broken software
by pixie_ on Sunday October 23, 2016 @07:07PM
(#12775876)
Interesting, thanks. It seems pretty 'statically' typed to me. Kind of like TypeScript on the surface, but underneath the tooling and transpilers it is not. What do you think?
[ Parent
| on HN ]
Re:Static typing will not save us from broken software
by yogthos on Monday October 24, 2016 @12:07AM
(#12776722)
ClojureScript is dynamic, but it has completely different semantics from JavaScript. It just treats Js as a compile target.
I think that Clojure has much cleaner language semantics than JavaScript, and this makes the code much easier for the IDE to analyze it.
That said, there is optional static typing available with Typed Clojure, and it can even generate type annotations from tests as seen here: https://github.com/typedclojure/auto-annotation