News for hackers. Stuff that matters.
Re:Flow vs. Typescript by arvinsim on Monday June 06, 2016 @01:04AM (#11844773)
Can you explain the difference between Flow's approach and plain JSDoc 3?
Re:Flow vs. Typescript by girvo on Monday June 06, 2016 @01:54AM (#11844913)
Flow's type system is infinitely more powerful. It's proper static analysis. Tern, as an example, can only do so much.
Re:Flow vs. Typescript by abritinthebay on Monday June 06, 2016 @02:33PM (#11849088)
JSDoc is verbose, not inline, not directly associated with the code and not very friendly to use, as well as having a large maintenance overhead..?

I mean... that all applies to JSDoc/JavaDoc syntax before I compare it to Flow anyhow.

Flow's comment system is inline - right next to the code you're writing. It's very clear exactly what it refers to and it's easy to use. Plus it's not TypeScript: it's JavaScript, just with comments.

TypeScript is great, but it is what it is and that is not JavaScript (a superset, sure, but C++ is a superset of C, so what?)