Answer the question
In order to leave comments, you need to log in
Coffeescript vs. Typescript vs. ClojureScript
Has anyone compared these three "languages"? I use Coffee and perhaps there are not enough static types.
How good is this in TS?
What about ClojureScript? How convenient is it for web development? The same recursions, beloved by Clojure-ists, in JS will be non-tail and not very fast.
Who managed to program in all three languages and briefly compare the advantages / disadvantages? Or throw a link at me?
Answer the question
In order to leave comments, you need to log in
The main question is why do you need static types in your application. I write in TypeScript and, for example, I really don’t like the fact that for every change in the data model, I have to add a field to the model or set the type to any, and specify this explicitly. And even worse. If any method takes an array as a parameter, which can contain different types, then you must explicitly cast it to the any[] type.
I agree that compilation is good. Static typing is good too. However, my purely IMHO is that scripting languages should be treated with scripting thinking.
Perhaps if TypeScript support has been significantly improved in the same WebStorm 7.0, my indignation will be less, or come to naught.
However, TypeScript offers to write in the style of the same sharp without the same tool as the resharper.
Minus in the direction of TypeScript and plus in CoffeeScript - a smaller amount of code, symbols, etc.
Personal opinion based solely on feelings - CoffeeScript is cute, TypeScript is monstrous.
If you write on the same AngularJS, IMHO TypeScript is meaningless. Although with a strong desire, you can do it quite successfully.
As the person above advised - look at livescript, in my cursory glance it is even more cute than Coffee. However, I’ll say right away that I didn’t write a single line of LiveScript code, the impression is purely from the appearance and its capabilities.
There is no tail recursion optimization in Clojure. If you need to write down such code, then there is recur . So there they are not very fast either.
On the topic, I used all three, arranged for myself in this order: CoffeeScript, ClojureScript, TypeScript. For static types: disnetdev.com/contracts.coffee/
Nice little thing, a bit on topic: prezi.com/zkhsz49ownaw/coffeescript-vs-typescript/
Try livescript , you can say something in between coffeescript and clojurescript.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question