Facebook Launches Flow, Static Type Checker for JavaScript
11–20 of 282 posts
Re: Facebook Launches Flow, Static Type Checker for JavaScript
#12Re: Facebook Launches Flow, Static Type Checker for JavaScript
#13Looks nice. Is it written in ML?
Re: Facebook Launches Flow, Static Type Checker for JavaScript
#14 tsc --noImplicitAny hello.tsc
which will result in hello.ts(2,14): error TS7006: Parameter 'x' implicitly has an 'any' type.
I do not see much difference.[1]: http://flowtype.org
Re: Facebook Launches Flow, Static Type Checker for JavaScript
#15From my perspective, the static type checking is more or less the same as TypeScript's `--noImplicitAny` option as the first example on flowtype [1] shows, the same can be achieved with tsc --noImplicitAny hello.tsc which will result in hello.ts(2,14): error TS7006: Parameter 'x' implicitly has an 'any' type. I do not see much difference. [1]: http://flowtype.org
Re: Facebook Launches Flow, Static Type Checker for JavaScript
#16Very nice. I wonder how hard this would be to throw into Jasmine/QUnit type scenarios.
Re: Facebook Launches Flow, Static Type Checker for JavaScript
#17Re: Facebook Launches Flow, Static Type Checker for JavaScript
#18From my perspective, the static type checking is more or less the same as TypeScript's `--noImplicitAny` option as the first example on flowtype [1] shows, the same can be achieved with tsc --noImplicitAny hello.tsc which will result in hello.ts(2,14): error TS7006: Parameter 'x' implicitly has an 'any' type. I do not see much difference. [1]: http://flowtype.org
TypeScript doesn't have that concept, although it's been suggested by the community more than once.
Re: Facebook Launches Flow, Static Type Checker for JavaScript
#19Re: Facebook Launches Flow, Static Type Checker for JavaScript
#20How 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 r…
http://flowtype.org/docs/classes.html#polymorphic-classes
http://flowtype.org/docs/functions.html#polymorphic-function...