tc39 / ecma262

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

Editorial: remove some "are both" usages #3330

Closed michaelficarra closed 1 month ago

michaelficarra commented 1 month ago

This doesn't remove all occurrences, but the other occurrences are either in prose/asserts or we talked about them and they are justified because they form a nice pattern of spec steps. Typically, we avoid using this structure.

Additionally, this particular test is done in 6 places, 4 of which are already using our preferred phrasing.

syg commented 1 month ago

Do we typically avoid using this?

michaelficarra commented 1 month ago

@syg Yes. https://github.com/tc39/ecma262/pull/2877

  • prefer "if a is c and b is c" over "if a and b are both c"