8000 bug(roundtrip): augmented assignments outside basic arithmetic lose operator semantics · Issue #160 · Mnehmos/mnehmos.nls.lang · GitHub
[go: up one dir, main page]

Skip to content

bug(roundtrip): augmented assignments outside basic arithmetic lose operator semantics #160

Closed

Description

@Mnehmos

Stress testing against seaborn surfaced a roundtrip gap for augmented assignments such as &= inside loop bodies. Atomized LOGIC currently degrades unsupported augmented operators into placeholder forms like ?=, which then fail to re-emit valid executable Python. Examples appeared in seaborn tests with rows &= ... and equal &= .... Desired outcome: atomization and emission should preserve a broader set of augmented assignments, especially bitwise/logical accumulator patterns used in real test suites.

Activity

  1. added
    bugSomething isn't working
    coreCore language semantics and design
    on Apr 2, 2026
  2. Mnehmos commented on Apr 2, 2026

    @Mnehmos
    OwnerAuthor

    Fix verified locally in the working tree. Augmented assignments like &= now survive atomize and re-emit as executable Python, including loop-body accumulator patterns. Added regression coverage and re-ran the seaborn corpus, which now passes 151 of 151.

  3. Mnehmos commented on Apr 2, 2026

    @Mnehmos
    OwnerAuthor

    Systematic Gitflow pass started. Fix is isolated on branch and pushed in commit . Verification on that branch: targeted augmented-assignment regressions pass and the seaborn corpus returns 151/151.

  4. Mnehmos commented on Apr 2, 2026

    @Mnehmos
    OwnerAuthor

    Systematic Gitflow pass started. Fix is isolated on branch fix/160-augmented-assignment-roundtrip and pushed in commit b72f2d4. On that branch the targeted augmented-assignment regressions pass and the seaborn corpus returns 151 of 151.

  5. Mnehmos commented on Apr 2, 2026

    @Mnehmos
    OwnerAuthor

    Resolved by merged PR #165: #165

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcoreCore language semantics and designpriority-mediumShould be addressed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0