Better error messages #195
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: M-Labs/nac3#195
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "error-messages"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #44, #87, #109, #166, #190, #193
Examples:
Note that the error message order may not be deterministic.
For #90, the error message is now better, but I have not yet added float64 to the primitive types.
There is still this obscure "var72"...
What about sorting by (filename, line, column)?
Because it is really a type variable that cannot be inferred. We can name this with something like a, b, c, d, but this is just the same. Name this with something like a, b, c, d may cause name collision between different threads or we will need to somehow synchronize them to share the name dictionary.
We can, but this will need another refactor because we have to make every error message a struct instead of a string. I planned to do so but there is just too many error messages around and hard to change this...
Just sort the strings then.
Done.