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 …
-
-
There is a problem with `next`: it takes an argument, but not when you call it for the first time
-
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
- 2 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.