-
Notifications
You must be signed in to change notification settings - Fork 363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Promises in core? #177
Comments
Cool, I’ll take a look first before I can comment. Thanks, Raymond Feng StrongLoop makes it easy to develop APIs in Node, plus get DevOps capabilities like monitoring, debugging and clustering. On Jul 16, 2014, at 1:10 PM, Paulo Cesar notifications@github.com wrote:
|
alright nice, take a look at the rebased tree instead, I gave up jugglingdb because of the author comment about how promises are "syntax sugar" |
In my opinion, Promises are sort of a must-have. Since LoopBack and Juggler are running in the browser now, we need a paradigm that works across all semi-modern browsers. I am not following the implementation of ES6 features in different browsers, but I would expect it will take some time before generators can be safely used on the web. AngularJS, which is the front-end MVC we support, is promise-based. We will have to implement promise-based API for loopback when building an isomorphic version of LoopBack SDK for AngularJS. |
@raymondfeng I think generators are just as needed in asynchronous programming as promises, since they play along very well (yield promises + chain generators). While promises provide a generic interface (then/catch/finally), generators need "something" else to glue them together (like using @bajtos yeah, I agree. I use Angular in my day-to-day programming, and you just can't ignore proper handled async code anymore. Although Angular is STILL missing a way to |
👍 I'm jumping up and down in my seat reading this. 🏩 |
o/ promisify all the things ! |
Related: strongloop/loopback#418 |
Just curious, where do promises for the core stand right now in the queue? |
Closing in favour of strongloop/loopback#418, which is already in progress. |
I created https://github.com/pocesar/promised-jugglingdb but kinda wasted my time because Jugglingdb is a mess. Does datasource juggler have 'space' for a dual API (promise / callback) in core?
The text was updated successfully, but these errors were encountered: