tc39 / ecma262

Status, process, and documents for ECMA-262
https://tc39.es/ecma262/
Other
15.08k stars 1.29k forks source link

Editorial: Reorganize clauses 6 through 9 #2148

Open jmdyck opened 4 years ago

jmdyck commented 4 years ago

It's a bit odd to me that after discussing objects in 6.1.7 (The Object Type), we talk about some non-object stuff, and then go back to objects in clause 9 (Ordinary and Exotic Objects Behaviours).

Similarly, it's odd that after discussing spec types in 6.2, we talk about other stuff, and then go back to spec types in clause 8 (Executable Code and Execution Contexts).

(In fact, 6.2.6 (The Environment Record Specification Type) is basically just a pointer to 8.1 (Environment Records). So env records "belong" in both places? If we were adding a new spec type, how would we decide whether it goes in 6.2 or 8?)

I suggest reorganizing clauses 6 through 9, so that there's one top-level clause for ES language types, and one for ES spec types.

The result might look something like the following. (Clauses are shown here with their current number and title for ease of reference. Numbers would of course change, titles might change. The order of sibling clauses could be adjusted to taste.)

I realize that this would change the position and nesting-level of ~6k lines, but Issue #1950 is contemplating a move of at least ~10k lines, so this doesn't seem outrageous.

michaelficarra commented 4 years ago

@jmdyck Thank you for your suggestion. We'll consider the appropriate organisation after we've completed #1950.

syg commented 3 years ago

The editors haven't really made any progress here on our preference, and given other efforts this reorg is of pretty low priority. In the interest of not doing work that we won't get cycles to review anytime soon, perhaps you'd want to hold off on doing work here, @jmdyck.

jmdyck commented 3 years ago

I'll continue to hold off.