Coder Social home page Coder Social logo

Comments (4)

danielstjules avatar danielstjules commented on July 17, 2024

Not sure that this is particularly helpful for any existing js projects. Flow will simply report hundreds to thousands of global/require errors, and that's with the weak annotations. Solving that involves a lot of leg work in declaring interfaces for all the third party modules you use, e.g. https://github.com/facebook/flow/blob/master/examples/flux-chat/lib/events.js

from check-build.

ruimarinho avatar ruimarinho commented on July 17, 2024

I actually think it is a good idea since it can be an opt-in feature for those would like to statically check their code on a "build check". Right now the only drawback I see with flow is that support for ES6 code is still in its early stage, so it isn't much valuable for me at this point (lack of support for generators).

from check-build.

danielstjules avatar danielstjules commented on July 17, 2024

Until they port over interfaces from https://github.com/borisyankov/DefinitelyTyped to flow, it's still not very practical for existing projects. If you had an Express app, you'd first be looking to write interfaces for all the modules you required, e.g. https://github.com/borisyankov/DefinitelyTyped/blob/master/express/express.d.ts Or what if you used jQuery for some client-side code? https://github.com/borisyankov/DefinitelyTyped/blob/master/jquery/jquery.d.ts Doesn't seem like a quick opt-in to me. That requires a pretty big investment from devs.

Not bashing flow itself, which I think is a nice alternative to TypeScript. And that's the key. The project might be getting promoted as a means of augmenting JS with better type safety, but it's really a new language. Hence the parallels to TypeScript.

from check-build.

FGRibreau avatar FGRibreau commented on July 17, 2024

Ok, my bad, I read flow description too fast, it's clearly a new langage on top of JavaScript, not a static JavaScript type checker, closing this integration for now.

from check-build.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.