opened
justsml
username_0
Hi Sindre, I wanted to see if you had used/seen this kind of pattern before?

I've been looking into re-writing my bluebird [Promise+FP JS research project](https://github.com/username_0/escape-from-callback-mountain) with your Promise modules. 

The only reason for bluebird is my planned list of content for the wiki or readme on the subjects: collections, exceptions, flattening huge hierarchies, and timeouts/delays.

If you can spare a moment, I'd really appreciate your unvarnished opinion. 
Is the pattern worth developing more?
Any gotchas I might run into mixing your modules?

Thanks again for all the work you do!!!
Example Functional Promises pattern
issue
created
sindresorhus
username_1
Sorry about the slow reply. I forgot about this one.

Your approach is pretty close to what I used to do in my code too. I too like composing small functions into a pipeline. I think you should embrace async/await though. It makes the flow more readable. For example, I would have written your usage here like this:

```js
const getResults = async data => prepare(data, await process(data));
const getData = async id => getResults(await Storage.find(id));
```

*(Written quickly, so take it with a grain of salt. Just meant as a POC.)*
comment
created
sindresorhus
username_1
They don't extend `Promise.prototype`, so some things might be slightly more verbose, but it's worth it. With Bluebird you always have to be careful about `Promise.resolve()`'ing any external Promise you get so you get a "Bluebird"-promise.

I'm always open for good feedback on them ;)
comment