caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: leary@nwlink.com
To: caml <caml-list@inria.fr>
Subject: Re: [Caml-list] enums in OCaml?
Date: Wed, 13 Jun 2001 13:50:03 -0700	[thread overview]
Message-ID: <20010613135003.K26204@jean> (raw)

Yup, that's the functionality I was looking for.  I wonder, tho' ('cause
I'm like that...), since plain ol' named variables would be shorter, what
is the argument for using sum types w/ pattern matching instead?

On Wed, Jun 13, 2001 at 10:46:36AM +0200, David Mentre wrote:
> Maybe you should have a look at source code of standard libraries. They
> are remarkably concise and well written.

Thanks for the link, I'd passed that over (!) as a reference for examples.
Which brings up a question: Is there anyone working on annotating the
standard/core libraries.  Might do for OCaml a bit of the magic that the
classic work did for Unix and C (I forget the title/author; someone?).

> For example, operations on lists (List module):
> http://camlcvs.inria.fr/cgi-bin/cvsweb.cgi/ocaml/stdlib/list.ml?rev=1.27&content-type=text/x-cvsweb-markup
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


             reply	other threads:[~2001-06-13 20:50 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-13 20:50 leary [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-06-13  2:21 leary
2001-06-13  7:37 ` David Mentre
2001-06-13  8:20   ` leary
     [not found] ` <200106130751.f5D7pbL11758@ionie.inria.fr>
2001-06-13  8:18   ` leary
2001-06-13  8:46     ` David Mentre
2001-06-14  8:15 ` leary
2001-06-14  8:41   ` Chris Hecker
2001-06-14  8:53   ` Jacques Garrigue
2001-06-14  9:12   ` Francisco Valverde Albacete
2001-06-14 13:04   ` Chris Quinn

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=20010613135003.K26204@jean \
    --to=leary@nwlink.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;
as well as URLs for NNTP newsgroup(s).