-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Runtime Type Checks to Utilize Value-Derived Type Validation (…
…#26) This refactor introduces a significant change to the runtime type checking mechanism across the codebase. Previously, each type had an associated assertion function responsible for validating its values. The new implementation shifts this responsibility to a more dynamic approach where the type is deduced directly from the value, and then it is validated to determine if it is a subtype of the expected type. Key changes include: - Elimination of the `Assert` class: The dedicated assertion functions have been removed, as the logic for type validation is now incorporated within the `Type` class and related expressions. - Improved Error Handling: The error messages generated during evaluation now reflect the exact types encountered, providing clearer feedback on type-related issues.
- Loading branch information
1 parent
cd5d8f2
commit ec579eb
Showing
25 changed files
with
197 additions
and
595 deletions.
There are no files selected for viewing
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.