Skip to content

reuse tele_fill for template prefixes in def_emit() - #1354

Merged
Lorenzobattistela merged 2 commits into
bendlang:mainfrom
toprameen:simplify-type-prefix
Oct 6, 2026
Merged

Lorenzobattistela merged 2 commits into
bendlang:mainfrom
toprameen:simplify-type-prefix

Conversation

@toprameen

Copy link
Copy Markdown
Contributor

def_emit now fills leading template arguments with existing tele_fill, removing type_drop’s recursive scan and binder reconstruction.

Local checks: repository gate and whitespace check pass. Output matches on 326 checked fixtures; 63 boundary comparisons and 17 kernel verdict pairs agree. Sixteen CLI verdicts and five negative diagnostic fixtures pass. TypeScript introduces no new diagnostics.

@toprameen
toprameen marked this pull request as ready for review October 5, 2026 20:45

@Lorenzobattistela Lorenzobattistela left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Gates green merged onto main 53fc961: repo 50/50, ping 47/47, test 1577/1577, perf 123/124 (main 121/124, noise), safe identical to main per file. -o .bendtt is byte-identical on all 1588 tests (129 specialized instances), so this is a pure refactor.

Two small asks:

  • cols.slice(0, tld.x) instead of cols.filter(v => v !== null): it states the leading-prefix invariant and stays positional like arm()'s cols.slice(tld.x). With the filter, a future gap in cols would silently fill values onto the wrong binders.

@Lorenzobattistela Lorenzobattistela self-assigned this Oct 6, 2026
@toprameen

Copy link
Copy Markdown
Contributor Author

Switched to slice instead of filter.

You mentioned two asks @Lorenzobattistela but only listed one. Let me know if there is a second.

@Lorenzobattistela Lorenzobattistela left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

There's no second ask, it got dropped when I edited the review. The slice change covers it. Thanks, approving.

@Lorenzobattistela
Lorenzobattistela merged commit 5be8ddd into bendlang:main Oct 6, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants