Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved handling of exceptions #77

Open
MatthewHambley opened this issue Oct 24, 2022 · 0 comments
Open

Improved handling of exceptions #77

MatthewHambley opened this issue Oct 24, 2022 · 0 comments

Comments

@MatthewHambley
Copy link
Collaborator

Currently rules tend to carry their own exceptions. This makes a certain amount of sense but there are problems when exceptions get complicated. For instance, if you wanted to enforce kind on immediate values but only when they are present as procedure arguments.

It's hard to argue that the "naked immediate" rule should understand that exception, it's far to specific to a particular requirement.

Some sort of generic exception framework may be the solution but such a thing would likely have to be quite powerful as it probably needs to understand the parse tree.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant