Repository navigation
Conversation
Merged
5 of 8 tasks
Collaborator
|
Thanks for the prototype and the write-up. We're going to close this one: The idea stays recorded in #1632 if we revisit error messages later. Probably has some better way do it, but I think the message it's understandable rn for 300 tokens. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a prototype for proposal 4 of #1632 (a call that does not shrink), in reply to the request to prototype 1–7. It is opened against
bendlang/bendfor review:bend2/bend.tsis human-written per AGENTS.md, so it is not a merge request as it stands. The branch isproto/1632-4-decreasing-argumenton the fork,4e0b46d7, rebased onmain; the repo gate is green.Changed the self-call descent in infer-ref (
bend.ts:3340). The existing loop still decides pass/fail; on failure I compare the arguments against the def's declared parameter names (tele_unbind(def.T)), skip arguments that are literally the unchanged parameter, and report the first that isn't — so the common multi-argument case names the right one. A bare self-reference with no arguments keeps the old message. The argument is quoted as written (the check does not evaluate it) and cut at 60 characters.Your repro:
The other order reports the second argument:
25 existing tests with the old message regenerate (the 6 that stay on it are bare self-references, which fall back).