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] Stupid question
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-01-15 (05:11)
From: Brian Hurt <bhurt@s...>
Subject: Re: [Caml-list] Stupid question
On 15 Jan 2004, skaller wrote:

> Well, <> is a polymorphic value comparison.
> Whereas != is a physical inequality comparison.

Yes.  I was wondering why the compiler didn't catch that I was comparing 
booleans and thus it could inline the value comparison, and reduce it to 
the equivelent to !=.  I've gotten into the habit of writting <> because 
I'm playing around with FP, and 1. <> 1. is false, while 1. != 1. is true.

"Usenet is like a herd of performing elephants with diarrhea -- massive,
difficult to redirect, awe-inspiring, entertaining, and a source of
mind-boggling amounts of excrement when you least expect it."
                                - Gene Spafford 

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: