monet / monet.js

monet.js - Monadic types library for JavaScript
https://monet.github.io/monet.js/
MIT License
1.6k stars 114 forks source link

Support for Promises as Monads #38

Closed sebasgarcep closed 8 years ago

sebasgarcep commented 8 years ago

This would be a nice feature to include into the library at some point. Promises are great, but what I'm not sure is if they completely follow monadic laws

cwmyers commented 8 years ago

I'm working on Promises/Futures at the moment. Stay tuned!

mostr commented 8 years ago

Hey @cwmyers, are there any plans to ship support for promises/futures any time soon? Thanks

alem0lars-yr commented 7 years ago

Are there any news for supporting native node Promises as monads?

ulfryk commented 7 years ago

@alem0lars-yoroi - what do yo mean by native node Promises as monads ?

I am a fan of adding monadic Futures (rather than Promises - to avoid name conflicts). And to do it with next milestone (0.10.0) as current milestone is mostly cleanup, bugfixes and limited extending of current API.

WDYT @cwmyers

sebasgarcep commented 7 years ago

@ulfryk I agree with you. We should stop calling it Promises and rather call it Futures.

alem0lars-yr commented 7 years ago

I also agree.

What I was going to figure out was if it was already planned some interoperability between existing code using node's native Promises and Futures.

On Sat, Feb 4, 2017 at 8:10 PM, Sebastian Garrido notifications@github.com wrote:

@ulfryk https://github.com/ulfryk I agree with you. We should stop calling it Promises and rather call it Futures.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cwmyers/monet.js/issues/38#issuecomment-277467649, or mute the thread https://github.com/notifications/unsubscribe-auth/ATLn2Hp3PG9BM7DpLiYRgZtQhyX-Pvucks5rZM0YgaJpZM4HLNEy .

graingert commented 7 years ago

FYI, here's the issue: https://github.com/monet/monet.js/issues/102