- From: Domenic Denicola <notifications@github.com>
- Date: Mon, 10 Oct 2016 13:38:28 -0700
- To: heycam/webidl <webidl@noreply.github.com>
Received on Monday, 10 October 2016 20:39:42 UTC
One point I think is missing in that analysis is that the records vs. classes perspective TC39 has arrived at is explicitly derived from developer expectations and common coding patterns, as I tried to point out. Developers, in their own code, work with open-ended records via methods like `Object.keys` or `Object.assign`. They do not use for-in loops (at least not without a hasOwnProperty guard). In other words, this isn't a TC39 vs. developers dichotomy; I think TC39 and developers are fairly aligned on this. So I think options 3 and 4 would be surprising to developers, as it would cause platform code to behave in unexpected ways that are not natural for normal JavaScript libraries. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/heycam/webidl/pull/180#issuecomment-252739512
Received on Monday, 10 October 2016 20:39:42 UTC