tc39 / proposal-get-intrinsic

EcmaScript language proposal for a way to get intrinsics.
https://tc39.github.io/proposal-get-intrinsic/
MIT License
32 stars 4 forks source link

[spec] migrate global to Reflect methods #19

Closed ljharb closed 1 year ago

bathos commented 1 year ago

Oh wow — so %Reflect% should be understood going forward as a broad-purpose namespace for any kind of introspection & reflection, not just reflection of the object protocol?

(This seems unfortunate to me — there is value in %Reflect% outlining the shape of that protocol, appearing as a kind of default %Proxy% handler, and describing the precise minimum set of ops needed to reflect/explain every observable behavior of the language, which these are not. But I’m guessing this change came from a discussion that might have already weighed those things out and come to a different conclusion?)

ljharb commented 1 year ago

Yes, that seemed to be the committee consensus when it was last discussed. https://github.com/tc39/notes/blob/7e73db5028979cb7afd85c0dd328e860015c074d/meetings/2023-01/feb-02.md?plain=1#L243-L248