Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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 
Brian

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