From: Stefan Monnier <monnier@iro.umontreal.ca>
To: caml-list@inria.fr
Subject: Re: Strange parsing of with-clauses
Date: Mon, 29 Nov 2004 14:41:32 -0500 [thread overview]
Message-ID: <jwvy8gk4f6k.fsf-monnier+gmane.comp.lang.caml.inria@gnu.org> (raw)
In-Reply-To: <20041129.180429.38700401.andrieu@ijm.jussieu.fr>
> definition. `E of string * string' defines an exception with two
> arguments of type string, which has a different representation than an
> exception with one argument of type "tuple of strings". The latter
> should be defined as `E of (string * string)'. There's the same issue
> with variant types (but not the polymorphic ones !).
I think this is another place where Haskell got it right: make those
constructors curried so that it's obvious that it's not carrying a tuple.
Stefan
prev parent reply other threads:[~2004-11-29 19:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-29 16:26 Richard Jones
2004-11-29 16:46 ` [Caml-list] " Alex Baretta
2004-11-29 17:04 ` Olivier Andrieu
2004-11-29 19:41 ` Stefan Monnier [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=jwvy8gk4f6k.fsf-monnier+gmane.comp.lang.caml.inria@gnu.org \
--to=monnier@iro.umontreal.ca \
--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