If you're using @AtomEditor without https://nuclide.io and @flowtype, you're doing it wrong.
$ apm install nuclide
go
-
-
That works for normal functions. Doesn’t work for methods like Array.filter
-
What are the semantics of A.p.f that you're trying to capture?
-
class Array<T>{ filter(fn: typeof Boolean): Array<$NonNull<T>>; }
-
that’s the type I added to the flow-core lib. Again, not saying this is some big reason for preferring Flow. just many small things
-
After the non-nullable types and flow analysis. Typescript is pretty good. Just not quite Flow level yet.
-
fwiw, as someone who works on
#rustlang, I can understand advanced type system features. Lay it on me :) -
hey. Got all the respect for you in the world. You probably know way more about type systems than I can imagine.
-
I'm very interested in the concrete thing you're trying to express. I'll be the first to admit deficiencies in TS.
- 15 more replies
New conversation -
-
-
Otherwise I prefer that pattern in Flow too. Magic types are for edge-cases.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.

Just kidding, we know you write perfect code 