I am coming from times where entries were cool for a Map.from proposal too to then realize the produced array never includes all own enumerable properties, just a subset, because keys was taken into account, but then fromEntries
didn't take anything previously discussed into account (and rightly so ... we should move forward, not backward, like entries
did).
In a chain of entries
and fromEntries
I've lost data for no reason and that's because the two methods do different things with entries ... fromEntries
does the right thing, while entries is stuck with Chrome 5 and Object.keys in times symbols didn't even exist.
I hope Reflect.entries
and Reflect.fromEntries
would fix this somehow, but that's whole new proposal that takes forever to land as usual ... so here I was hoping for a quick fix over an already well known and used API.
Object.fromEntries
is not broken for modern JS, Object.entries
is ... because it doesn't understand modern JS, like symbols.
Everyone on twitter istantly understood what is broken by reading my very first example ... it's exhausting in here every single time, reason I'm fading out more than ever these days.
It's tiresome to hear every time the same answer: "yeah, we got it, but not compelling enough" ... with all changes landing just because big company asked for it it's not clear to me anymore what's this space about ... nothing passes through, even small things that everyone agrees are doable become a week of discussions with repeated answers over and over.
Apologies for the rant but really there should be a manifest about all conversations that won't need to even start becuse if it's not big money company asking for it or a TC39 member itself, it's not interesting and it's not going to happen.
In this thread people suggested me Object.getOwnPropertyDescriptrs
which is something I've brought to JS in times people listened to developers.
I've contributed in other fields too ... as example, the fact classes have not enumerable methods and accessors by default is also my proposal.
Ultimately here it's crickets ... every topic diverted into something else not intended, everything over-complicated for no reason, and stuff stuck for ages because the change isn't too big, hence not too compelling.
It's a bad way forward for JS and I hope things will change in the near future ... gatekeeping never worked too well in history neither.
I respectfully wish you a lovely rest of the day and week and close this thread because there's nothing else for me to discuss: it's clear what I've proposed, and it's also clear nobody gives an eff about it in this space, many do in other venues.
Regards 