Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: gasche <gasche.dylc@gmail.com>
To: Jacques Le Normand <rathereasy@gmail.com>
Cc: caml-list caml-list <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] GADT constructor syntax
Date: Sat, 4 Dec 2010 20:36:06 +0100	[thread overview]
Message-ID: <AANLkTimrcOm7o1Q9JmSXt7VOoN8K9oEWKYusUMubG0dp@mail.gmail.com> (raw)
In-Reply-To: <AANLkTimVTv7J_b6AY1gKKT9hdQx83a+4FBM7pqvHpAHM@mail.gmail.com>

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

I prefer option a) for the constructor form, and b) for the quantification
syntax. I'm strongly sure that the explicit quantification is a much better
choice, while I think the first choice (constructor form) is more of a
matter of taste.

I think the constructor form using "of" is better as the general function
syntax suggests currying is possible (| Foo : a -> b -> c), while it is not
possible for constructors (or you maybe it is, and then should support it).
"of foo * bar * baz" is not perfect (I prefer the revised syntax "of foo and
bar and baz"), but at least it's a consistent defect we're used to.

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

  reply	other threads:[~2010-12-04 19:37 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-04 19:25 Jacques Le Normand
2010-12-04 19:36 ` gasche [this message]
2010-12-04 19:39 ` [Caml-list] " Basile Starynkevitch
2010-12-04 19:41 ` Lukasz Stafiniak
2010-12-04 20:14   ` Jacques Le Normand
2010-12-04 20:22     ` Lukasz Stafiniak
2010-12-04 20:54       ` Jacques Le Normand
2010-12-04 21:00         ` Lukasz Stafiniak
2010-12-04 21:06           ` Jacques Le Normand
2010-12-05  8:10             ` Lukasz Stafiniak
2010-12-05  8:16               ` Lukasz Stafiniak
2010-12-05  8:25               ` Lukasz Stafiniak
2010-12-05  8:35                 ` bluestorm
2010-12-06  0:21                   ` Jacques Garrigue
     [not found] <1245532236.1431213.1291490707868.JavaMail.root@zmbs3.inria.fr>
2010-12-06  9:11 ` Daniel de Rauglaudre

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=AANLkTimrcOm7o1Q9JmSXt7VOoN8K9oEWKYusUMubG0dp@mail.gmail.com \
    --to=gasche.dylc@gmail.com \
    --cc=caml-list@yquem.inria.fr \
    --cc=rathereasy@gmail.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