caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Lukasz Stafiniak <lukstafi@gmail.com>
To: Goswin von Brederlow <goswin-v-b@web.de>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Wish: mutable variant types, equivalence with records
Date: Sat, 24 Mar 2012 19:42:10 +0100	[thread overview]
Message-ID: <CAJMfKEVuZvCv3ridDL00_H507cQE7KoDgi9YtL5pQdeG5T3Fow@mail.gmail.com> (raw)
In-Reply-To: <CAJMfKEU80uhksOLOa3a44Ma-Uf1_ciRrfvo=E58YBe4q_fqxKQ@mail.gmail.com>

On Sat, Mar 24, 2012 at 7:39 PM, Lukasz Stafiniak <lukstafi@gmail.com> wrote:
> On Sat, Mar 24, 2012 at 7:32 PM, Lukasz Stafiniak <lukstafi@gmail.com> wrote:
>>
>> I'm not sure about mutable but I'd appreciate labels :D
>
> As for syntax, I think that "unboxed anonymous records" would be better.

For starters, one could make a Camlp4 extension that generates a
record type named "typ_Variant" for a type "typ" and its constructor
"Variant" whose fields are defined as a record. Hmm...

Record unboxing might be handled as an orthogonal issue?

  reply	other threads:[~2012-03-24 18:42 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-24 18:26 Goswin von Brederlow
2012-03-24 18:32 ` Lukasz Stafiniak
2012-03-24 18:39   ` Lukasz Stafiniak
2012-03-24 18:42     ` Lukasz Stafiniak [this message]
2012-03-25 22:45       ` Goswin von Brederlow
2012-03-24 18:42 ` Jonathan Protzenko
2012-03-24 18:45 ` Wojciech Meyer
2012-03-24 18:59   ` Lukasz Stafiniak
2012-03-29 22:46   ` François Bobot
2012-03-30 12:16     ` Goswin von Brederlow
2012-03-30 15:00       ` François Bobot
2012-03-31 15:52         ` Goswin von Brederlow
2012-03-31 19:17     ` Alain Frisch
2012-03-26  8:41 ` Romain Bardou

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=CAJMfKEVuZvCv3ridDL00_H507cQE7KoDgi9YtL5pQdeG5T3Fow@mail.gmail.com \
    --to=lukstafi@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=goswin-v-b@web.de \
    /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).