3 ms·
I keep trying to get my head around javascript, and each time end-up walking away metaphorically shaking my head in disbelief. Which parts are you having probl
by dagw 10y ago
I keep trying to get my head around javascript, and each time end-up walking away metaphorically shaking my head in disbelief.
Which parts are you having problems getting your head around? Typescript doesn't change anything fundamental about the language (especially if compared to ES6), but does add a bit of nice syntactic sugar and (optional) compile time type checking, which is really handy for catching certain bugs and making your code easier to read and reason about. Typescript's big advantage (and disadvantage) is that it is a strict superset of JavaScript. This means that all your existing JavaScript code is already valid Typescript code and so you can move your code from JavaScript to Typescript in small incremental steps. The downside of this is it places some limits on how the language can evolve.
If you want a web language that 'feels' closer to C++ or C#, your best bet is probably to check out Dart.