01:00 | <rkirsling> | interesting |
01:00 | <rkirsling> | I assumed rent-a-car would be unavoidable for SD but if multiple people are opposed it'd be sweet to find another solution |
01:00 | <rkirsling> | I too don't enjoy driving |
19:05 | <snek> | can only member companies host |
19:06 | <Chris de Almeida> | can only member companies host |
19:09 | <Chris de Almeida> | https://github.com/tc39/how-we-work/blob/main/host.md |
19:11 | <snek> | neat |
21:00 | <bakkot> | man, "give me all of the own enumerable string + symbol keys of this object" is a surprisingly annoying task for something I want to do pretty often |
21:01 | <bakkot> |
is the best I've got |
21:02 | <bakkot> | do you figure we could add get away with making Object.keys /entries take a options bag argument like { symbols: true } |
21:05 | <bakkot> | alternative I guess is a Object.symbolKeys / Object.symbolEntries so you could at least do [...Object.keys(x), ...Object.symbolKeys(x)] |
21:10 | <ljharb> | Reflect.ownKeys + a filter doesn't do it? |
21:10 | <ljharb> | (also why would you use gOPN if you want only enumerable? that's what keys already gives you) |
21:22 | <littledan> | wasn't that sort of the point, that symbols are supposed to be pseudo-private so it should be annoying to reflect over them? |
21:22 | <Michael Ficarra> | ljharb: keys is strings only |
21:23 | <littledan> | or was that just a compat decision? |
21:23 | <Michael Ficarra> |
|
22:16 | <bakkot> | ah, Reflect.ownKeys is an improvement on using getOwnPropertyNames + getOwnPropertySymbols , sure |
22:16 | <bakkot> | Object.keys doesn't include symbols, is the reason |
22:16 | <ljharb> | ljharb: keys is strings only |
22:17 | <ljharb> | |
22:17 | <bakkot> | sure, yes, that does end up being equivalent here |
23:16 | <Richard Gibson> | https://github.com/endojs/endo/blob/master/packages/pass-style/doc/copyRecord-guarantees.md#how-do-i-enumerate-thee-let-me-list-the-ways |