If you're using @AtomEditor without https://nuclide.io and @flowtype, you're doing it wrong.
$ apm install nuclide
go
-
-
for context: type Option<T> = T | null; type Maybe<T> = Option<T> | undefined;
-
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.
- 16 more replies
New conversation -
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 