<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2005/05/1ae5760e693924595b8116222f632c58"
  from="skaller &lt;skaller@u...&gt;"
  author="skaller"
  date="2005-05-15T15:50:34"
  subject="Re: [Caml-list] A nastier example"
  prev="2005/05/94c06dc09ec07ad92c889e5c20ea476c"
  next="2005/05/eea4399d8267823e7128927642e53047"
  prev-in-thread="2005/05/c23ac1fb563ef0f0713608ff7539987e"
  next-in-thread="2005/05/eea4399d8267823e7128927642e53047"
  prev-thread="2005/05/de924d02da1bfa569ce4712abd1edf55"
  next-thread="2005/05/26824eb019503a51e04ca1d7a8880e02"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="A nastier example">
<msg 
  url="2005/05/ae89a3abd5fc5427758f84f82fc041f2"
  from="Julien Verlaguet &lt;Julien.Verlaguet@p...&gt;"
  author="Julien Verlaguet"
  date="2005-05-14T14:51:17"
  subject="A nastier example">
<msg 
  url="2005/05/91f9b790a67a737ae62058f8755578a4"
  from="Marcin &apos;Qrczak&apos; Kowalczyk &lt;qrczak@k...&gt;"
  author="Marcin &apos;Qrczak&apos; Kowalczyk"
  date="2005-05-14T15:37:40"
  subject="Re: [Caml-list] A nastier example">
<msg 
  url="2005/05/1f822b6b7ed3c39e7476e3563d42e797"
  from="Julien Verlaguet &lt;Julien.Verlaguet@p...&gt;"
  author="Julien Verlaguet"
  date="2005-05-14T15:47:18"
  subject="Re: [Caml-list] A nastier example">
</msg>
<msg 
  url="2005/05/364d49a5518b65697cd274b31137e7f7"
  from="Vincenzo Ciancia &lt;vincenzo_yahoo_addressguard-gmane@y...&gt;"
  author="Vincenzo Ciancia"
  date="2005-05-15T15:00:52"
  subject="Re: A nastier example">
</msg>
</msg>
<msg 
  url="2005/05/3bc04a2b6140d6da20788c3741d9b2cd"
  from="Eric Cooper &lt;ecc@c...&gt;"
  author="Eric Cooper"
  date="2005-05-14T16:09:57"
  subject="Re: [Caml-list] A nastier example">
</msg>
<msg 
  url="2005/05/c23ac1fb563ef0f0713608ff7539987e"
  from="Jon Harrop &lt;jon@f...&gt;"
  author="Jon Harrop"
  date="2005-05-14T19:09:48"
  subject="Re: [Caml-list] A nastier example">
<msg 
  url="2005/05/1ae5760e693924595b8116222f632c58"
  from="skaller &lt;skaller@u...&gt;"
  author="skaller"
  date="2005-05-15T15:50:34"
  subject="Re: [Caml-list] A nastier example">
</msg>
<msg 
  url="2005/05/eea4399d8267823e7128927642e53047"
  from="Mark Shinwell &lt;Mark.Shinwell@c...&gt;"
  author="Mark Shinwell"
  date="2005-05-15T17:24:49"
  subject="Re: [Caml-list] A nastier example">
<msg 
  url="2005/05/762915bddf4ffeafe2765647734a4809"
  from="Jon Harrop &lt;jon@f...&gt;"
  author="Jon Harrop"
  date="2005-05-16T00:15:58"
  subject="Re: [Caml-list] A nastier example">
<msg 
  url="2005/05/877310c6b6bc56c7fae1209b293da92f"
  from="Damien Doligez &lt;damien.doligez@i...&gt;"
  author="Damien Doligez"
  date="2005-05-16T11:40:34"
  subject="Re: [Caml-list] A nastier example">
</msg>
</msg>
</msg>
</msg>
</msg>
</thread>

<contents>
On Sun, 2005-05-15 at 05:09, Jon Harrop wrote:

&gt; I think everyone would agree that there are caveats here but this is a 
&gt; question of trade-offs. So the question should be "how can we improve upon 
&gt; the current implementation?". 

&gt; There are many pitfalls associated with equality in OCaml but the existence of 
&gt; polymorphic comparisons is easily justified by their usefulness, IMHO.

Require the user to define the comparison, then provide a way
to generate them 'memberwise' for products and sums.

-- 
John Skaller, mailto:skaller@users.sf.net
voice: 061-2-9660-0850, 
snail: PO BOX 401 Glebe NSW 2037 Australia
Checkout the Felix programming language http://felix.sf.net



</contents>

</message>

