Open Raynos opened 11 years ago
I'm still heavily exploring where I want to go with this. I'm starting to think that what I'm building doesn't belong in the node.js ecosystem. I really want a new stream interface. My plan with the "continuable" name on npm was to be a module that exported continuable and simple stream versions of all the core nodejs APIs. But since my streams are very different from node streams and conversions between the two types is somewhat expensive, I'm torn on what to do.
How about I give you the continuable name on npm and we agree to keep it simple only containing continuable versions of node's core stuff? My stream stuff can be separate, my fiber stuff will definitely be separate. I'm just not sure where functional helpers should go. Usually when doubt I go with the simpler option and have many small modules vs one larger module. I regret bundling middleware with connect and have since learned my lesson.
@creationix if you want continuable to be a "process.binding that returns continuables" thing then the functional helpers should just go in another library maybe continuations
or something
I'm not picky. If you think the "continuable" name is best for functional helpers, then the process.binding wrapper can go to another name. Maybe continuable-fs for fs bindings, for example.
@creationix I do think "continuable" is a good name for higher order functions.
I've also tried to make my continuable module fantasy-land compliant, ( https://github.com/Raynos/continuable/blob/master/index.js ).
The remaining question is do you agree with the syntax and names of the higher order functions?
I'm starting to depend on
https://github.com/Raynos/continuable
by git uris in npm and that isn't optimum.It would be cool if we can figure out how to share the continuable name.
I was going to add a
hash
function to continuable soon like https://gist.github.com/Raynos/3f4006e9f86ce96aa8acI'm torn between adding that to
continuable
itself and just writing acontinuable-hash
module.One alternative that avoids the issue is for me to just rebrand my github thing to a different name.