News for hackers. Stuff that matters.
Re:Show HN: Decaffeinate converts CoffeeScript projects to m... by jononor on Monday June 19, 2017 @04:18AM (#14585343)
So want typing support in CoffeeScript...
Re:Show HN: Decaffeinate converts CoffeeScript projects to m... by rattray on Monday June 19, 2017 @11:28AM (#14587656)
That was a big part of my motivation in building 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!

Re:Show HN: Decaffeinate converts CoffeeScript projects to m... by koolba on Monday June 19, 2017 @06:07AM (#14585740)
That'd be particularly difficult as CoffeeScript doesn't have var declarations.
Re:Show HN: Decaffeinate converts CoffeeScript projects to m... by molszanski on Monday June 19, 2017 @11:38AM (#14587747)
Partly. 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`

Re:Show HN: Decaffeinate converts CoffeeScript projects to m... by jononor on Tuesday June 20, 2017 @04:07PM (#14598107)
Can 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?
Re:Show HN: Decaffeinate converts CoffeeScript projects to m... by molszanski on Monday June 19, 2017 @10:40AM (#14587307)
I personally don't really like types, but I've successfully used FB Flow with CS and it was fine.
Re:Show HN: Decaffeinate converts CoffeeScript projects to m... by jononor on Tuesday June 20, 2017 @04:10PM (#14598131)
Got any docs/writeup for this? Any tips/tricks/hacks?