caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Matthieu Sozeau <mattam@altern.org>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Map + Set
Date: Mon, 26 Jul 2004 12:40:51 +0200	[thread overview]
Message-ID: <20040726104051.GA9736@mattam.ath.cx> (raw)
In-Reply-To: <Pine.LNX.4.44.0407251158010.6739-100000@localhost.localdomain>

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

On Sun, Jul 25, 2004 at 12:01:03PM -0500, Brian Hurt wrote:
> On Sun, 25 Jul 2004, Martin Jambon wrote:
> 
> A better interface might be:
> 
> val find: (elt -> int) -> t -> elt

Why an int ? Isn't a boolean enough ?
 
> There is a lot of functionality I'd like to be able to add to map and set.  
> I find myself reimplementing them on a regular basis myself (and no, I
> haven't thought of a better solution).  

Apart from "val of_list : elt list -> t" (a one liner) and the find
function (a fold with an exception or using `exists` and keeping a
reference, which indicates, I think, that it should be implemented 
directly in set.ml), i don't remember truly missing functions. 
What are those ?

> Many people on this list don't like modules, however.

That seems like a weird opinion to me, and mine is that most OCaml hackers
are really caml hackers who don't want to know about the OO part.
-- 
"Are you sure you're not an encyclopedia salesman?"
No, Ma'am.  Just a burglar, come to ransack the flat."
-- Monty Python

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2004-07-26 10:54 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-25  8:17 Martin Jambon
2004-07-25 16:26 ` Matt Gushee
2004-07-25 17:01 ` Brian Hurt
2004-07-26 10:40   ` Matthieu Sozeau [this message]
2004-07-26 15:25     ` Brian Hurt
2004-07-26 15:47       ` Martin Jambon
2004-07-26 16:26         ` Brian Hurt
2004-07-26  7:43 ` Diego Olivier Fernandez Pons
2004-07-26 16:24   ` Martin Jambon
2004-07-26 16:52     ` Diego Olivier Fernandez Pons
2004-07-27 21:45   ` [Caml-list] Camlp4 help/questions Josh Smith
2004-07-27 22:11     ` Brian Hurt
2004-07-28  1:15       ` Josh Smith
     [not found]     ` <200407272307.50167.jon@jdh30.plus.com>
2004-07-28  1:38       ` Josh Smith
2004-07-28  8:03     ` Pierre Weis

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=20040726104051.GA9736@mattam.ath.cx \
    --to=mattam@altern.org \
    --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).