Comments (4)
The above is how it's done in, for example, RxSwift. They have a file with functions that allow up to 8 parameters.
from promise.
I like your code gen function!
In this library, what you call join is called zip. Currently, it only allows two parameters, but we could add higher arity versions.
The changes that I'm thinking about making to zip are a) removing the and
parameter name, and b) moving to a new enum namespace named Promises
, so that you dont have to specify a generic type that isnt used anywhere
from promise.
How did I manage to miss that? zip
seems kind of obvious in retrospect, but I managed to scroll right past it when browsing the source. Oh well. I'll rework the code gen to work with it.
from promise.
This was partially invalid and the rest was implemented in #15. Closing.
from promise.
Related Issues (20)
- Difficulty understanding tapping version of "then" HOT 1
- error: invalid target name at 'PromiseTests'; name of non-test targets cannot end in 'Tests' HOT 3
- TravisCI making it look like it works HOT 6
- Tests while in SPM HOT 10
- Promise chaining after `catch` is lacking HOT 2
- `then` methods type inferring issue HOT 13
- As of #43, the project might be incompatible with Xcode prior to 9.3 GM and Swift prior to 4.1 HOT 3
- Add Xcode 9.2 deployment in Travis CI.
- What about 2.0.2 ? HOT 2
- Static libs now support Swift - Promise should support static libs :) HOT 2
- Update Podspec HOT 6
- Callback threading problems HOT 3
- How to switch catches on error types? HOT 9
- Require only App-Extension-Safe API HOT 2
- No issue, just a THANK YOU HOT 1
- Suggestion: AllSettled implementation HOT 5
- Race condition when chaining a promise after being fulfilled? HOT 1
- Conflict with State enum and @State in SwiftUI HOT 3
- Not sure how to return Void promise HOT 3
- Catch Clause Not Invoked HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from promise.