Closed paf31 closed 8 years ago
Looks good, but not having an async get
primitive is a fundamental problem in my opinion. Maybe it would be better to wait and think about the free monad approach a bit more before committing to Producer
and then still maybe going back to free later.
Can you please describe a case where you need get
and not just modify
? Thanks.
@pkamenarsky Could you take a look at the latest version please? I think it is the best of both worlds:
coroutines
, so we have a standard language for talking about asynchronous stuff which can interoperate with producers and consumerscotransform
(wrapped in a Maybe
to handle failure).Please let me know what you think. If this seems okay, I'll make a release.
@pkamenarsky Ping. Do you have time to go over this? I'd like to get a 1.0 release out soon if possible.
Thanks :)
Looks good! I think this is a good compromise for now, if we come up with a better abstraction we can still change it later on.
Thanks!
@pkamenarsky I've reverted back to the
Producer (s -> s)
approach, for the reasons given in your PR. Could you please have a look at this, and let me know what you think?If this looks okay, I'll make a 1.0 release.
Thanks!