Repository navigation
Conversation
Collaborator
|
Thanks for the prototype and the careful write-up. We're going to close this one: This is probably wanted and at some point we will implement, most likely when Bend is bootstrapped. |
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 1 of #1632 (a misspelt name), 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-1-name-suggestionson the fork,30a87a7d, rebased onmain; the repo gate is green.The note is added at the unknown-name throw in infer-ref (
bend.ts:3359), so nothing runs on success. Candidates arebook.tldskeys within edit distance 2 of the full displayed key, same namespace first — and when any same-namespace name matches, only those are listed, which keepsNat.addown toNat.add. I skip internal keys (~N, leading., leading_), require the name parts to share their first character unless the difference is a single edit (that suppressed noise likeChan/Map/Natfor a barenanandIO/Orfor_^), and only offer a name the file can see (the root, its own namespace, or an imported one), so the suggestion is one the user can actually write.On your repro:
Every check-failing test that expects
a defined namewas run (32). Two change:tests/io/tls_connect_close.bend(TLS.connect→TCP.connect) andtests/flatten/ctor_call_syntax.bend(Aw4→Nw4, or Rw4). The other 30 typo to names with no near neighbour and keep the old message.