From: John R Harrison <johnh@ichips.intel.com>
To: Markus Mottl <markus@mail4.ai.univie.ac.at>
Cc: caml-list@inria.fr, John Harrison <johnh@ichips.intel.com>
Subject: RE: "Re: [Caml-list] A G'Caml question" + additional info
Date: Mon, 16 Jul 2001 11:24:52 -0700 [thread overview]
Message-ID: <200107161825.LAA09375@dhpc0010.pdx.intel.com> (raw)
Markus Mottl writes:
| This is a shortcoming of the standard library that there are no
| polymorphic implementations of "Set" and similar. It's very easy to
| extract a polymorphic (module-) version from the existing code.
I strongly agree with this point. From recent messages it seems that I'm
just one of a whole army of O'Caml users who've essentially
cut-and-pasted code out of the standard set library with a fixed
polymorphic comparison function inserted. For a polymorphic language to
make dealing with polymorphic sets so awkward seems ridiculous.
Perhaps the justification for the decision to include orderings in the
standard interface is that the default equality and orderings may not
behave as desired on arbitrary types, e.g. non-canonical abstract data
types like other sets. However, a better solution might be to make
equality on abstract types settable (see an earlier thread I started on
this topic). Will G'Caml be any help in this respect? That is, will it
allow one to "overload" equality on particular types?
John.
-------------------
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
next reply other threads:[~2001-07-16 20:35 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-16 18:24 John R Harrison [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-07-11 14:30 Krishnaswami, Neel
2001-07-11 16:22 ` Brian Rogoff
2001-07-11 16:35 ` Bruce Hoult
2001-07-11 19:12 ` Markus Mottl
2001-07-12 3:15 ` Patrick M Doane
2001-07-10 18:21 Krishnaswami, Neel
2001-07-11 6:09 ` Sven
[not found] <3B3D503C.E91DDE34@ozemail.com.au>
2001-06-30 16:01 ` Patrick M Doane
2001-06-30 20:59 ` Brian Rogoff
2001-07-01 5:32 ` Patrick M Doane
2001-07-02 15:55 ` Brian Rogoff
2001-07-10 18:08 ` Patrick M Doane
[not found] <3B3BB6EC.3DEB6CBF@ozemail.com.au>
2001-06-29 4:18 ` Patrick M Doane
2001-06-20 3:16 [Caml-list] A G'Caml question Brian Rogoff
2001-06-25 17:11 ` "Re: [Caml-list] A G'Caml question" + additional info Jun Furuse
2001-06-28 2:21 ` Patrick M Doane
2001-06-28 4:40 ` Brian Rogoff
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=200107161825.LAA09375@dhpc0010.pdx.intel.com \
--to=johnh@ichips.intel.com \
--cc=caml-list@inria.fr \
--cc=markus@mail4.ai.univie.ac.at \
/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