Tom Van Cutsem (2013-07-30T13:12:56.000Z)
domenic at domenicdenicola.com (2013-08-04T22:50:45.296Z)
2013/7/30 David Bruant <bruant.d at gmail.com> > What about WeakMaps? Maps? Sets? I meant the specific list of built-in methods on Array, apart from isArray, are less crucial. We'll have to evaluate the other types you mention on a case-by-case basis as well. > How is the line drawn between "crucial" and "less crucial"? How is going > to be decided whether new exotic object types are crucial? > I feel the line is very context-specific. I think that's essentially Allen's point: with built-ins, you arrive at rock-bottom, at the edges of the platform. You cannot easily generalize anymore. We need to look at each of these "is an exotic X" tests on a case-by-case basis and use our judgment whether it makes sense for proxies to pass the test. > "I agree that it is not safe to generalize: a proxy for an X is not in > general substitutable for X." => How much unsafe? What are the risks? I don't think a general answer exists, because each of these built-ins has its own idiosyncratic set of invariants.