Conversation
|
Thanks again for the quick review. A little bit of experienced feedback goes a long way. Following is note-to-self: Updated without tokens for using, erased. Worth noting that Modified the verbose advice to say an error makes a symbol unavailable. That happens frequently during a refactor, where fixing one site results in further errors in the next run. Internet suggests "misspelt" is becoming archaic. Also, although I love forms such as "spelt", "spelt" also means "wheat", and we know overloading is evil. Edit: the message says "soft token" instead of "soft keyword", and on the ticket Bjorn asks for more specific advice about "mixing regular and using params." Maybe just say "the keyword must appear at the beginning of the param clause". |
bjornregnell
left a comment
There was a problem hiding this comment.
I think the error messages and explaining texts read good.
|
@odersky Please approve based on Bjorn's approval. |
|
I may be missing some context here, but why closed instead of merged? @som-snytt |
4af5ac4 to
79d05aa
Compare
79d05aa to
5581cdb
Compare
|
rebased, squashed, removed some words during ugly merge. |
|
@bjornregnell Could you re-review and perhaps get official sanction? The previous effort included heavier edit of the explain text, which I omit here because of the heavy merge. The previous effort included handling The only trick in parser is error recovery in skipping bad token to the presumably intended ident. I'll also update the introductory comment above. |
|
LGTM |
|
Reopening to reconsider this forgotten bit. |
|
@som-snytt is this still relevant? Do you plan to work on this in the near future, or should we close it? |
5581cdb to
d2521d1
Compare
|
I'm not sure it was ever relevant, but I have refreshed the PR. |
Offer extra feedback when soft keyword
usingis found in identifier position, because it is a common beginner mistake.Skipping to the intended
jmay also reduce subsequent "not found" errors.In Vulpix, show actual errors when no errors are marked. It is unlikely that this is "TMI" for the developer. Automatic
-rewriteis left for another day.Fixes #15614