Parallel async bindings, how cool is that? (Imagine if you could declare multiple `await` bindings in parallel)https://github.com/janestreet/ppx_let#parallel-bindings …
And you don't want unions because it doesn't capture the fact that it's wrong to pass nothing after the first?
-
-
right, union would be incorrect
-
But it's not quite `any` right? Even strongly typed languages sometimes use Option/Maybe types to deal with state changes.
-
The only safe option with current generator API is to make it require type `T` all the time.
-
then you can opt in to omit the first time using `any`. This is much safer than union
-
i don't like that you cannot tell the order specific next-value types come in... e.g in redux saga , you can only assert types at some point
-
I've opened an issue in Flow do that. But it seems to be a limitation of type checking in general
-
i know... so that was my point before... homogenous or intersection types are a must then, which is sad

-
It would require typestate, which is rough to implement, but not at all unique to this problem or JS-designed APIs.
End of conversation
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.