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

non-exhaustive matches / better warning #2532

Closed
vicuna opened this issue Jul 21, 2000 · 1 comment
Closed

non-exhaustive matches / better warning #2532

vicuna opened this issue Jul 21, 2000 · 1 comment

Comments

@vicuna
Copy link

vicuna commented Jul 21, 2000

Original bug ID: 164
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: feature
Category: ~DO NOT USE (was: OCaml general)

Bug description

Hello,

some beginners seem to get confused by the warning message concerning
non-exhaustive matches when guards are used:

Warning: this pattern-matching is not exhaustive.
Here is an example of a value that is not matched:

They believe that there still is some incompleteness in their sources
even if there isn't (I know this is in the FAQs).

Maybe one could come up with a better warning message in the case of
matches with guards, one that expresses the uncertainty concerning this
message, something like:

Warning: this pattern-matching could not be proved exhaustive.
Here is an example of a value that is possibly not matched (please verify):

Best regards,
Markus Mottl

--
Markus Mottl, mottl@miss.wu-wien.ac.at, http://miss.wu-wien.ac.at/~mottl

@vicuna
Copy link
Author

vicuna commented Nov 5, 2002

Comment author: administrator

This was done at some point. -- Damien 2002-11-05

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

No branches or pull requests

1 participant