caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Anthony Tavener <anthony.tavener@gmail.com>
To: "Stéphane Lescuyer" <stephane.lescuyer@inria.fr>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Subtyping structurally-equivalent records, or  something like it?
Date: Sun, 2 May 2010 09:59:48 +0700	[thread overview]
Message-ID: <w2l42b3ba3b1005011959m78be81bft672648619d99d461@mail.gmail.com> (raw)
In-Reply-To: <i2je9e94ac91005010951g65d1b7e8l7e221958bd800fa6@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 936 bytes --]

Wow! Thanks Stéphane... that was a little piece of magic I was
hoping for. It's a bit verbose, but at least it doesn't affect
performance and it allows all the control over types I need.

I now see I didn't really grok phantom types whenever they were
mentioned. A bit of "in one ear and out the other". Now I have
better grasp on yet another feature of the language.


I know I read that one before, Dario... that title about NASA
is familiar! Too bad I didn't remember it was a solution to the
problem I was now having. Thank-you for that link -- an
excellent description of the problem and a nice solution.


Ah, great stuff... that looks like something to consider too,
Sylvain! There's plenty of material on phantom types but I never
made the connection that they were what I was looking for.


Thank-you everyone for the help and clear explanations! I'm
going to go play with this now. :)

Anthony Tavener

[-- Attachment #2: Type: text/html, Size: 1030 bytes --]

  reply	other threads:[~2010-05-02  2:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-01 16:04 Anthony Tavener
2010-05-01 16:51 ` [Caml-list] " Stéphane Lescuyer
2010-05-02  2:59   ` Anthony Tavener [this message]
2010-05-07  9:42     ` AUGER
2010-05-01 19:55 Dario Teixeira

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=w2l42b3ba3b1005011959m78be81bft672648619d99d461@mail.gmail.com \
    --to=anthony.tavener@gmail.com \
    --cc=caml-list@yquem.inria.fr \
    --cc=stephane.lescuyer@inria.fr \
    /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).