From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id RAA27122 for caml-red; Fri, 30 Jun 2000 17:30:28 +0200 (MET DST) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id XAA07021 for ; Thu, 29 Jun 2000 23:10:08 +0200 (MET DST) Received: from dynabook.is.s.u-tokyo.ac.jp (DHCP12-11.CIS.UPENN.EDU [158.130.13.41]) by nez-perce.inria.fr (8.10.0/8.10.0) with ESMTP id e5TLA1H14146 for ; Thu, 29 Jun 2000 23:10:01 +0200 (MET DST) Received: from localhost ([127.0.0.1]) by dynabook.is.s.u-tokyo.ac.jp with esmtp (Exim 3.12 #1 (Debian)) id 137lZR-0004KB-00; Thu, 29 Jun 2000 17:10:01 -0400 To: caml-list@inria.fr cc: sumii@saul.cis.upenn.edu Subject: polymorphic equality and overloading X-Mailer: Mew version 1.94.1 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20000629171001Q.sumii@saul.cis.upenn.edu> Date: Thu, 29 Jun 2000 17:10:01 -0400 From: Eijiro Sumii X-Dispatcher: imput version 991025(IM133) Sender: weis@pauillac.inria.fr Dear Caml Developers/Users, (sorry that I don't know French) This might be an FAQ, but could someone please give a rationale to the polymorphic (in)equalities such as = and < in Caml? While they have a parametric polymorphic type 'a -> 'a -> bool, their semantics is ad hoc rather than parametric with respect to the type 'a (for example, they are undefined for functions), which I found confusing to some users---at least, a friend of mine was confused, and chose Haskell (which has type classes) over Caml! // Eijiro Sumii // // currently visiting: Department of Computer and Information Science, // School of Engineering and Applied Science, University of Pennsylvania