3 ms·
So want typing support in CoffeeScript...
by jononor 9y ago
So want typing support in CoffeeScript...
- koolba 9y agoThat'd be particularly difficult as CoffeeScript doesn't have var declarations.
- molszanski 9y agoPartly. You can define them if you want it. You can even add type support with FB Flow. CS developers sometimes define variables because of hoisting. Obviously, variables are defined. In CS they are simply defined for you automatically. That said, you can obviously do it yourself if you want. But you will not be able to use additional tooling around `let` and `const`
- jononor 9y agoCan one use FB flow with CoffeeScript? Comments I saw on github indicated that the CS compiler mangled it, I think due to how functions are named and stripping comments?
- molszanski 9y agoI personally don't really like types, but I've successfully used FB Flow with CS and it was fine.
- jononor 9y agoGot any docs/writeup for this? Any tips/tricks/hacks?
- rattray 9y agoThat was a big part of my motivation in building http://LightScript.org http://LightScript.org as it was clear that was never going to happen with coffee. Currently works with Flow syntax, but not yet the actual flow checker - would love help making that happen!