Facebook Launches Flow, Static Type Checker for JavaScript
code.prod.facebook.com
Facebook Launches Flow, Static Type Checker for JavaScript
1–10 of 282 posts
Re: Facebook Launches Flow, Static Type Checker for JavaScript
#2Very nice. I wonder how hard this would be to throw into Jasmine/QUnit type scenarios.
Re: Facebook Launches Flow, Static Type Checker for JavaScript
#3This is what I wished Typescript was.
Looks really handy.
Re: Facebook Launches Flow, Static Type Checker for JavaScript
#4Flow seems to be close to a true application of type theory and is written in OCaml. Well done Facebook.
Re: Facebook Launches Flow, Static Type Checker for JavaScript
#5If you are interested in learning more about Flow check out the docs [1] and github repo [2].
[1] - http://flowtype.org/
Re: Facebook Launches Flow, Static Type Checker for JavaScript
#6Is the type syntax friendly with CoffeeScript?
Re: Facebook Launches Flow, Static Type Checker for JavaScript
#7Hi, I'm Avik Chaudhuri, I'm one of the authors of Flow, and I'll be happy to answer questions.
Re: Facebook Launches Flow, Static Type Checker for JavaScript
#8That is quite impressive. No type annotations needed, and control flow is taken intro consideration (hence the name I guess).
If I am not mistaken, this tech could be used to build IDEs roughly similar to whats available for Java, couldn't it?
Re: Facebook Launches Flow, Static Type Checker for JavaScript
#9I know it's very early, but just curious if anyone is working on a node binding for this, or if one exists already? Would love to try it out in our stack, but it would require a javascript interface.
Re: Facebook Launches Flow, Static Type Checker for JavaScript
#10How this compares to TypeScript? At the quick glance I noted:
- more powerful type system (union types, hurray)
- support for JSX
- no windows binaries
- supports more of ES6 stuff
- ...but has no support for modules yet
- no generics (??)
How about performance? and workflow? Didn't yet find this: does it use a normal "write then compile" model like TS or has something like Hack (if I'm not mistaken it has a daemon running in the background, checking the code as you write it).
Wonder why FB decided to roll this on instead of using TS.