4 ms·
And by writing Clojure, you lose a lot of type safety and compile-time efficiency. Not that that's a bad thing, just pointing out that there's a trade-off that
by sdegutis 7y ago
And by writing Clojure, you lose a lot of type safety and compile-time efficiency. Not that that's a bad thing, just pointing out that there's a trade-off that it makes in favor of a simpler language to learn and implement. There's also the matter of it being more verbose to represent certain concepts in Clojure due to lack of syntax, but that's harder to argue.
- dominotw 7y ago> just pointing out that there's a trade-off that it makes in favor of a simpler language to learn and implement. I am not sure thats a tradeoff, ruby and python didn't gain anything in terms 'lack of syntax' by trading off 'type safety and compile-time efficiency.'
- samatman 7y agoLearn, maybe. Implement, though? Pervasively-immutable data structures and STM were no walk in the park to write.
- dominotw 7y agoclojure's data structures are written in java
- samatman 7y agothey are indeed, what else would they be written in? I'm having trouble connecting this with what I said...
- fulafel 7y agoInterestingly ClojureScript's are self hosted: https://github.com/clojure/clojurescript/blob/master/src/main/cljs/cljs/core.cljs#L7858 https://github.com/clojure/clojurescript/blob/master/src/mai... The JVM Clojure story is probably just that the data sturcture implementations were done very early in the history of the language before all the type etc directives were there.