News for hackers. Stuff that matters.
Re:Why Angular 2 Switched to TypeScript by Cpoll on Saturday July 23, 2016 @11:09PM (#12152054)
The article itself throws some self-doubt with a link to http://danluu.com/empirical-pl/

It's also a bit of a pain that it's just a summary of a video, and there's no citation to any text anyway.

From what I can tell, the first bit of evidence is from a researcher's toy language.

The second was a scan of GitHub for issues that included type errors. There's no mention of actual methodology, but I'm imagining that means 3% of Python issues in GitHub have a copy-and-pasted stacktrace that contains a type error? This is clearly not a great indicator, since it won't count issues with less description, or any bugs related to, say, a bad type coercion.

On the other hand, you're right, I've not read any research that points to static typing being a net-gain. Every static-type advocate probably remembers being burned by a dynamic-type issue, but that doesn't mean the advantages might not outweigh disadvantages - experience and intuition don't cut it here.

Re:Why Angular 2 Switched to TypeScript by orgomon on Saturday July 23, 2016 @11:17PM (#12152078)
In the absence of evidence, what else do you have besides experience and intuition?

I'm not actually making a claim one way or the other, I'm rather questioning one argument in favor of static typing.

There are other arguments for static typing which I agree with, but which are too domain-specific.