Types appearing in error messages should use syntax that the user can write
See original GitHub issueJust got U^
and wondered what it meant. Posting an issue to avoid forgetting it.
Gitter discussion: https://gitter.im/lampepfl/dotty?at=593858217503e2b7061ee7f8
@Blaisorblade: I’ve got
Values of types U^ and U^ cannot be compared with == or !=
as a fully user-visible error @DarkDimius: We don’t clean up output from this hints so far. if you’re creative, you may also seeLazyRef(...)
. Afaik no one has yet seen<overloaded ...>
in error message. You could be the first one 😃
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Error Message Guidelines - Nielsen Norman Group
Established wisdom holds that good error messages are polite, precise, and constructive. The Web brings a few new guidelines: Make error messages clearly ......
Read more >Syntax Error - an overview | ScienceDirect Topics
Syntax errors are mistakes in using the language. Examples of syntax errors are missing a comma or a quotation mark, or misspelling a...
Read more >How to Write Good Error Messages - UX Planet
1. Be Clear And Not Ambiguous ... Write error message in clear and simple language. User should be able to understand the problem...
Read more >Error Screens and Messages: UX Design Practices - Tubik Blog
The article shares insights on the UX design of error screens and writing error messages: learn how to smoothen the negative effect of...
Read more >Error message - Wikipedia
An error message is information displayed when an unforeseen problem occurs, usually on a computer or other device. On modern operating systems with ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For started, it’d be helpful if we could distinguish pretty-printing for
-Xprint
and pretty-printing for error messages. The former is used for debugging and is free to contain all the crazy syntax we want, the latter is read by users and needs to be as clear as possible.If we use a flag, I’d propose to default this flat to
true
in case version ends inSNAPSHOT
and false otherwise. Those prints are enabled by default because they save a huge amount of time when you debug typer.