Comments (4)
It's not clear to my why you prefer this over the current proposal. You can derive an array of status in the existing proposal if you need.
With your suggestion you will need to iterate over two arrays in sync to read the value and status. This is not great in my opinion.
from proposal-promise-allsettled.
This is just a suggestion for a feature, not a concrete proposal that it should be written exactly this way.
What if there is no value either way? You cannot infer the result in that case (I know it may sound like an an API/bad practice issue to you).
from proposal-promise-allsettled.
Sorry, I actually misunderstood you were suggesting the first parameter stay unchanged.
The first parameter currently is an array of objects. These objects contain the status. What is unsuitable about this for analytics or logging? You could easily results.map(r => r.status)
to get the array you want for the second parameter? Unless I am missing something again?
from proposal-promise-allsettled.
I think I missed that, for some reason. Closing this.
from proposal-promise-allsettled.
Related Issues (20)
- Advance to stage 3 HOT 10
- Advance to stage 4 HOT 2
- gh-pages link is dead
- The return type is not very friendly to parameter destructuring HOT 4
- Why not `reflect`? HOT 18
- Initial spec review HOT 1
- Clarify abrupt completions HOT 8
- Clarify Completions HOT 1
- Clarify [[AlreadyCalled]] HOT 3
- Clarify CreateDataProperty with string values HOT 2
- Clarify the need for `Function#length` notes HOT 4
- Misspelling "fullfilled" HOT 16
- Compatibility with existing Promise subclasses HOT 7
- Missleading sentence HOT 1
- Editorial nit: "constructor is a constructor function" HOT 1
- Editorial nit: add more !s
- Test262 coverage note HOT 1
- A flag in addition to (or rather than) `status`? HOT 7
- Poisoned `then` property rejecting the returned promise HOT 11
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 proposal-promise-allsettled.