Conversation
|
Agreed. The implementation of it is neat too. I see that the Go style isn't implemented. Want me to help with adding that part? Also, this would kind of open the door for having other transformative functions like |
|
I don't know, i'm not sure if it's a good idea yet. I had claud and open code do most of the work |
|
Will think about it more as well. Ok |
|
@iliaamiri I think it's a good idea. what do you think? |
|
@meech-ward Initially, I was against the idea because it feels like we're adding too many utilities to the library. But, after joggling between so many thoughts, I reached to a point where I don't see why not. The mindset of adding utilities around the |
|
Regarding the naming, I initially thought this is same functionality as I've seen similar idea in functional programming where they call it the pipe operator. Very similar to this idea. I'm purposing to rename it to |
There was a problem hiding this comment.
Here I believe maybe the linter automatically rmoved .js from the imports which we added based on issue #25 ?
|
I think this is more map than pipe. Especially since we're not "piping" the output directly to the next thing. We're transform what’s inside the wrapper, the promise, before it's been awaited. |
|
@meech-ward That's an interesting way to look at it. And I mean as long as the user reads the docs carefully, there shouldn't be any problems then. |
Just a suggestion, not an intentional PR.
.mapI just used it inline like this
its way nicer than shit like this:
@iliaamiri what do you think?