Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Luc Maranget <Luc.Maranget@inria.fr>
To: dsyme@microsoft.com (Don Syme)
Cc: caml-list@inria.fr
Subject: Re: Report a missing match
Date: Fri, 10 Sep 1999 09:53:58 +0200 (MET DST)	[thread overview]
Message-ID: <199909100753.JAA09416@margaux.inria.fr> (raw)
In-Reply-To: <39ADCF833E74D111A2D700805F1951EF1801418B@RED-MSG-06> from Don Syme at "Sep 9, 99 09:12:37 am"

> 
> 
> Hi,
> 
> It would be very helpful for me if the Caml compiler could report at least
> one missing match case when it says a match is non-exhaustive.  Is this
> feasible to implement fairly painlessly?  When working with very large
> datatypes, e.g. 100 constructors, it's very hard to know which case has been
> missed...
> 
> Thanks,
> Don
> 

Hi,

Conceptually, this is not that difficult to do, since the compiler look for
non-exhautive matches by enumerating possible non-matching values.

In practice, I have to see a little and have no time for that now...

I put this on a personnal TODO list.


--Luc Maranget







      parent reply	other threads:[~1999-09-10 14:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-09-09 16:12 Don Syme
1999-09-09 22:36 ` Jean-Yves Moyen
1999-09-10  7:53 ` Luc Maranget [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199909100753.JAA09416@margaux.inria.fr \
    --to=luc.maranget@inria.fr \
    --cc=caml-list@inria.fr \
    --cc=dsyme@microsoft.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox