Error messages are currently still a bit cryptic.
While there are multiple reasons for this, but one is the lack of helpful error messages.
High-level description of the feature
We should have the ability to add hints strings to error messages.
In the type checker, we might need to create a system that changes the hints being displayed depending on the error message generated before, which would require more granularity in the types of TypeError messages such that we can create conditionals and more fine-tuned error messages.
Description of potential implementation
First, we need to add a system where we can add hints to an error message.
Likely an array of strings.
In the type checker, we might need to create a system that changes the hints being displayed depending on the error message generated before, which would require more granularity in the types of TypeError messages such that we can create conditionals and more fine-tuned error messages.
Current Issue
Error messages are currently still a bit cryptic. While there are multiple reasons for this, but one is the lack of helpful error messages.
High-level description of the feature
We should have the ability to add hints strings to error messages. In the type checker, we might need to create a system that changes the hints being displayed depending on the error message generated before, which would require more granularity in the types of TypeError messages such that we can create conditionals and more fine-tuned error messages.
Description of potential implementation
First, we need to add a system where we can add hints to an error message. Likely an array of strings.
In the type checker, we might need to create a system that changes the hints being displayed depending on the error message generated before, which would require more granularity in the types of TypeError messages such that we can create conditionals and more fine-tuned error messages.