You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I feel like I tried to bring this up earlier, but it deserves its own issue.
Futures-for-futures are hazardous in the following manner (via @briancavalier, indirectly via MarkM, I believe):
letfuture=newFuture(({ accept })=>accept(5));letfutureForFuture=newFuture(({ accept })=>accept(future));letidentity=x=>x;// With ordinary futures, this is a composable identity transformation:leta=future.then(identity);// That is, `a` will be accepted with `5` as its value, just like `future`.// But with futures for futures, identity is broken:letb=futureForFuture.then(identity);// That is, `b` will be accepted with `5` as its value, but// `futureForFuture` of course has `future` as its value.// This prevents `identity` from being used as a no-op in the general case.
Do you agree that this is a problem? If so, I am happy to discuss solutions, as we have been doing over in Promises/A+ land. If not, /shrug.
The text was updated successfully, but these errors were encountered:
I feel like I tried to bring this up earlier, but it deserves its own issue.
Futures-for-futures are hazardous in the following manner (via @briancavalier, indirectly via MarkM, I believe):
Do you agree that this is a problem? If so, I am happy to discuss solutions, as we have been doing over in Promises/A+ land. If not, /shrug.
The text was updated successfully, but these errors were encountered: