News for hackers. Stuff that matters.
Re:TypeScript Won by bcoates on Wednesday April 27, 2016 @12:59PM (#11582233)
Same problems with linters: people write weird code and/or introduce unnecessary changes to correct code that doesn't pass the check.

Also, optional type checkers throw away a lot of the upsides of type systems (safe refactoring, type-aware optimizations, useful generics) so they're kind of a worst-of-both-worlds solution.

Re:TypeScript Won by mercurial on Wednesday April 27, 2016 @01:09PM (#11582322)
> Same problems with linters: people write weird code and/or introduce unnecessary changes to correct code that doesn't pass the check.

Having just converted a bunch of pure Javascript to Typescript, and writing new code in Typescript, this hasn't been an issue.

> Also, optional type checkers throw away a lot of the upsides of type systems (safe refactoring, type-aware optimizations, useful generics) so they're kind of a worst-of-both-worlds solution.

I'm not sure what you mean by "throwing away safe refactoring" but yeah, you don't get the performance benefits or reified generics (not that it's particularly useful). That said, it's not like you derive any performance benefit from Java generics either.