I had not realised how awesome yield-style generators (Python, C#) are in combinations with promises. https://www.promisejs.org/generators/
-
-
Replying to @avibryant
@avibryant@glv What's the Scala syntax for monads?1 reply 0 retweets 0 likes -
Replying to @avibryant
@avibryant And here's the docs: http://docs.scala-lang.org/tutorials/FAQ/yield.html … On the surface it seems less powerful than ES6 yield+promises.2 replies 0 retweets 0 likes -
Replying to @tirsen
@tirsen here's an attempt to translate the async login example from your original link to an async Scala method: https://gist.github.com/avibryant/0008b001537fb975292b …2 replies 0 retweets 0 likes
@tirsen because "for" sounds like a loop construct it's not at all obvious how flexible the syntax is until you start using it.
8:28 PM - 17 Apr 2015
0 replies
0 retweets
0 likes
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.