stylist icon indicating copy to clipboard operation
stylist copied to clipboard

Improved handling of exceptions

Open MatthewHambley opened this issue 3 years ago • 0 comments

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.

MatthewHambley avatar Oct 24 '22 13:10 MatthewHambley