caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jean-Christophe Filliatre <Jean-Christophe.Filliatre@lri.fr>
To: Alexy Khrabrov <deliverable@gmail.com>
Cc: OCaml <caml-list@inria.fr>
Subject: Re: [Caml-list] V.null in ocamlgraph
Date: Thu, 12 Mar 2009 15:41:22 +0100	[thread overview]
Message-ID: <49B91F12.4030103@lri.fr> (raw)
In-Reply-To: <A1490299-93CA-4AB9-9AE1-9DC60A02D5AA@gmail.com>

Alexy Khrabrov wrote:
> In some folds over data when creating ocmalgraph's, I'd need an empty 
> vertex value, something like V.null, to give to an edge-creating fold 
> when I know it's not going to be used.  Currently I have to look ahead 
> into the data.  Does it make sense to add a null value to the V 
> module, or is there another OCaml way to give a fold an empty V value?
What about using an option type instead?

I kind of dislike the idea of introducing an infamous "null" value in 
Ocamlgraph...

--
Jean-Christophe


      reply	other threads:[~2009-03-12 14:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-11 21:09 Alexy Khrabrov
2009-03-12 14:41 ` Jean-Christophe Filliatre [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=49B91F12.4030103@lri.fr \
    --to=jean-christophe.filliatre@lri.fr \
    --cc=caml-list@inria.fr \
    --cc=deliverable@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;
as well as URLs for NNTP newsgroup(s).