From: Joel Reymont <joelr1@gmail.com>
To: Caml List <caml-list@inria.fr>
Subject: Re: Transforming of ASTs and polymorphic variants
Date: Wed, 25 Apr 2007 05:56:40 +0100 [thread overview]
Message-ID: <C5E415F4-AABE-4820-90EE-ABFAAAA1113F@gmail.com> (raw)
In-Reply-To: <15893C08-FD0C-456B-A12F-DADCF6CC95F9@gmail.com>
I also tend to write "macros" to lessen the pain of typing up the
ASTs in my unit tests.
I may have in both a.ml and b.ml (contrived example)
type expr = VarIdent of string
I then end up with duplicate let id x = VarIdent x in both a.ml and
b.ml since A.expr and B.expr are of a different type. It would be
great if I could write id once and have it work for both A.expr and
B.expr.
Thanks, Joel
--
http://wagerlabs.com/
next prev parent reply other threads:[~2007-04-25 4:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-25 4:19 Joel Reymont
2007-04-25 4:56 ` Joel Reymont [this message]
2007-04-25 5:54 ` [Caml-list] " skaller
2007-04-25 5:59 ` Joel Reymont
2007-04-25 6:28 ` Martin Jambon
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=C5E415F4-AABE-4820-90EE-ABFAAAA1113F@gmail.com \
--to=joelr1@gmail.com \
--cc=caml-list@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