Non-exhaustive pattern-matching as a warning instead of error
Open
2.1. pattern-matching
error messages
good first issue
- Dominant language
- OCaml
- Stars
- 45
- Forks
- 28
- PR merge metrics
- No merged PRs in 30d
Description
Non-exhaustive pattern-matching could be optionally considered a warning. Such a behavior of the type-checker would simplify prototyping in Fram. For not-matched cases we could generate a call to built-in function "dbl_runtimeError", maybe even showing the counterexample of not-matched pattern. There is a minor design decision on what to do with non-exhaustive pure pattern-matching. Raising runtime-error should be considered as an effect `[]` (`NTerm` in Core), so I think, non-exhaustive pure pattern-matching should be an error.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.