Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] xor on booleans
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Frederic De Jaeger <Frederic.De.Jaeger@e...>
Subject: Re: [Caml-list] xor on booleans

CB> Hi,
CB> a little suggestion for the Pervasives module: the
CB> xor operator on booleans

CB> let (^^) = (<>)

CB> Christoph Bauer

For type safety, it would be better to have 

let (^^) (x:bool) (y:bool) = x <> y

-------------------
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