Skip to content

Conversation

@tontonialberto
Copy link
Contributor

Partially fixes #3648.

The following occurrences

  • If cond, s1. Otherwise s2
  • If cond, s1. Otherwise, s2
  • If cond, s1; otherwise, s2

have been replaced with If cond, s1; otherwise s2.

Copy link
Member

@bakkot bakkot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hit semantic satiation on "otherwise" about 20% of the way through this PR, but I'm pretty sure it's an improvement.

@jhnaldo
Copy link
Contributor

jhnaldo commented Jul 18, 2025

The esmeta tycheck error in this PR looks a bit odd. I’ll look into it.

@jhnaldo
Copy link
Contributor

jhnaldo commented Jul 18, 2025

I fixed the bug in ESMeta v0.6.3. After merging #3656, I hope this PR passes the esmeta typecheck.

@michaelficarra michaelficarra added editorial change ready to merge Editors believe this PR needs no further reviews, and is ready to land. establishes editorial conventions labels Jul 23, 2025
ljharb pushed a commit to tontonialberto/ecma262-inconsistency-fixes that referenced this pull request Jul 24, 2025
ljharb pushed a commit to tontonialberto/ecma262-inconsistency-fixes that referenced this pull request Jul 24, 2025
@ljharb ljharb force-pushed the unify-ifotherwise branch from 2aef93b to 889986d Compare July 24, 2025 14:58
@ljharb ljharb force-pushed the unify-ifotherwise branch from 889986d to f764049 Compare July 24, 2025 15:23
@ljharb ljharb merged commit f764049 into tc39:main Jul 24, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

editorial change ready to merge Editors believe this PR needs no further reviews, and is ready to land.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enforce the use of only one keyword between else and otherwise

6 participants