They've just fixed what I regarded as the top reason for avoiding it completely: the broken type checking on functions. It's a source of mystery that they didn't realise that was going to be a problem right from the start.
TypeScript 2.4
11–20 of 52 posts
Re: TypeScript 2.4
#12I kind of feel like this is when everybody converted codebases to CoffeeScript and are now stuck with having to undo that...
Yes, I get strong typing has merits - but so does writing the native language.
Re: TypeScript 2.4
#13Is Typescript goal to be the Java/C# of the browser/nodejs? static type checking, tooling and heavily OOP(as in Java/C#) based?
TypeScript 2.3 has support for vue.js this injection style patterns (see https://github.com/Microsoft/TypeScript/pull/14141) which are way out of the realm of class-centric programming languages. Similarly the inference cabalities (expanded in 2.4) and the fundamental nature of the type system being structural rather than nominal is another give away of the language nature and direction.
So the short answer is TypeScript is a superset of JavaScript; and is as class-centric as JavaScript is.
Re: TypeScript 2.4
#14Won't we stop transpiling everything once ES6 support (& modules) are ubiquitous? I kind of feel like this is when everybody converted codebases to CoffeeScript and are now stuck with having to undo that... Yes, I get strong typing has merits - but so does writing the native language.
Re: TypeScript 2.4
#15Won't we stop transpiling everything once ES6 support (& modules) are ubiquitous? I kind of feel like this is when everybody converted codebases to CoffeeScript and are now stuck with having to undo that... Yes, I get strong typing has merits - but so does writing the native language.
But even if all of that does go away, types outweigh writing without types imo - but you can always take the output of TSC and stop using it going forward, its not obfuscated.
Re: TypeScript 2.4
#16This is exciting. About a month ago, I tried this just expecting it to already be supported. I was sad to learn it wasn't.
Kudos to the Typescript team for the awesome, continual improvements.
Re: TypeScript 2.4
#17Won't we stop transpiling everything once ES6 support (& modules) are ubiquitous? I kind of feel like this is when everybody converted codebases to CoffeeScript and are now stuck with having to undo that... Yes, I get strong typing has merits - but so does writing the native language.
Re: TypeScript 2.4
#18Won't we stop transpiling everything once ES6 support (& modules) are ubiquitous? I kind of feel like this is when everybody converted codebases to CoffeeScript and are now stuck with having to undo that... Yes, I get strong typing has merits - but so does writing the native language.
Naturally. But the merits of strong typing far outweigh those of writing the native language, for me at least. If you have a project of any reasonable size, TypeScript is such a huge productivity boost it's incredible.
I was very sceptical (having indeed been burnt by trying CoffeeScript before) but the comparison doesn't really work with TypeScript. If it died tomorrow and we all decided to go without it, we'd just transpile to JS and be done with it - CS -> JS looks very, very different, but TS -> JS is the exact same code, just with types stripped out.
Re: TypeScript 2.4
#19Of course, it does look like this release has no? Salsa-related fixes or improvements, so it doesn't surprise me.