What do you think of LazyPromise as a lightweight alternative to Effect?

3 points by ivan7237d


manuel

Could you provide some actual examples that contrast LazyPromise with Effect?

ivan7237d

It started out as as a rethink of Observable/Promise in a world with Signals, but has recently added support for generator syntax and dependency injection.

roryokane

What is this Effect you speak of? I don’t see any JavaScript API of that name when I search MDN, and when I search for “JavaScript effect library”, I just get some animation libraries that mention the general concept of animation effects. LazyPromise’s README doesn’t contain any link in the section that mentions Effect, either.

artemisSystem

I think this is similar to how Aff works in purescript (which is implemented as () => new Promise(...) when you construct it, iirc)