Summary
(chicken irregex): Use condition kinds
Metadata
- Id: 79d8c0694838d2177b26368a6f1fafe5bff8687b
- Trac id: 1815
- Type: defect
- Reporter: Zipheir
- Owner:
- Cc:
- Status: new
- Component: core libraries
- Estimated difficulty:
- Resolution:
- Priority: major
- Milestone: someday
- Version: 5.3.0
- Changetime: 2023-02-10 19:59:18 UTC
- Created: 2023-02-10 19:59:18 UTC
- Keywords: irregex exceptions
Description
The (chicken irregex) module should raise conditions with kinds. It's hard to handle exceptions automatically without them. For example, 'irregex' raises an exception when called with a syntactically-invalid regular expression or with an object of the wrong type (say, a vector). The only way to tell which of these problems occurred is through a nasty kluge: examining the condition's message. It should instead raise a condition with kind '(exn type)' for the type error (like the rest of CHICKEN's core forms) and with kind '(exn irregex)' (e.g.) for the regular expression syntax error.