Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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 Archives:
Bug reports: FAQ:
Beginner's list: