From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA05607; Mon, 3 Feb 2003 15:56:13 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id PAA05999 for ; Mon, 3 Feb 2003 15:56:12 +0100 (MET) Received: from lachesis.inria.fr (lachesis.inria.fr [128.93.52.5]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h13EuBf03756; Mon, 3 Feb 2003 15:56:11 +0100 (MET) Received: (from lefessan@localhost) by lachesis.inria.fr (8.12.5/8.12.5/Submit) id h13E2Yar010073; Mon, 3 Feb 2003 15:02:34 +0100 From: Fabrice Le Fessant MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15934.30328.890419.546763@lachesis.inria.fr> Date: Mon, 3 Feb 2003 15:02:32 +0100 To: Frederic De Jaeger Cc: OCaml List Subject: Re: [Caml-list] xor on booleans References: X-Mailer: VM 7.07 under Emacs 21.2.1 Reply-To: fabrice@lefessant.net Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > For type safety, it would be better to have > > let (^^) (x:bool) (y:bool) = x <> y Type safety is not lost, since (^^) is just equivalent to (<>), which is polymorph. The polymorphic (^^) is better if I want to define my own boolean type: type bool = True | False, and use (^^) with it. - Fabrice ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners