@puffnfresh @brmatt How exactly would flat/flatMap help in this case? Sorry, maybe I'm just slow here. :)
-
-
Replying to @puffnfresh
@puffnfresh@brmatt Are you assuming a non-object bound map function?1 reply 0 retweets 0 likes -
Replying to @jankrems1 reply 0 retweets 0 likes
-
Replying to @puffnfresh
@puffnfresh@brmatt Maybe rephrasing: What would you want to be the result and what is the result with "auto-flattening promise chains"?1 reply 0 retweets 0 likes -
Replying to @puffnfresh
@puffnfresh As I said: on that abstraction level I agree. But practical example where specifically auto-flatMap of promises fails..?1 reply 0 retweets 0 likes -
Replying to @puffnfresh
@puffnfresh I was talking about specifically flatMap of promise chains. When using .then - not a theoretical .map1 reply 0 retweets 0 likes -
Replying to @jankrems
@puffnfresh So my question would be: could there be any function that expects Promise[Promise[T]] for good reasons?2 replies 0 retweets 0 likes
@jankrems @puffnfresh abstraction fails. Flattening Promise is equivalent to flatMap. Without distinction you go no further in abstraction.
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.