caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Dario Teixeira <darioteixeira@yahoo.com>
To: caml-list@yquem.inria.fr, Jon Harrop <jonathandeanharrop@googlemail.com>
Subject: Re: [Caml-list] Private type syntax and error message
Date: Fri, 12 Sep 2008 07:19:54 -0700 (PDT)	[thread overview]
Message-ID: <78095.20041.qm@web54605.mail.re2.yahoo.com> (raw)
In-Reply-To: <200809121604.56179.jon@ffconsultancy.com>

> What do you expect it to do that might work? If it created
> an abstract type 
> the type would be useless, having no way to construct or
> destructure values 
> of that type...

Hi,

I think the idea is that the type would be declared inside
a module that would provide constructor functions.  Moreover,
because private is not abstract, it would allow the outside
world to pattern-match on values of that type.  This is actually
a very useful feature.

Btw, the code works on 3.11 CVS!

Cheers,
Dario Teixeira






  reply	other threads:[~2008-09-12 14:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-12 13:43 Colonna Francois
2008-09-12 15:01 ` [Caml-list] " Colonna Francois
2008-09-12 15:04 ` Jon Harrop
2008-09-12 14:19   ` Dario Teixeira [this message]
2008-09-12 14:37     ` Virgile Prevosto

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=78095.20041.qm@web54605.mail.re2.yahoo.com \
    --to=darioteixeira@yahoo.com \
    --cc=caml-list@yquem.inria.fr \
    --cc=jonathandeanharrop@googlemail.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;
as well as URLs for NNTP newsgroup(s).