Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] CamlP4 Revised syntax comment
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Stefano Zacchiroli <zack@c...>
Subject: Re: [Caml-list] CamlP4 Revised syntax comment
On Fri, Oct 25, 2002 at 12:02:47PM -0700, brogoff@speakeasy.net wrote:
> comparison, and this change removes that overloading and uses a 
> fairly common (C, Haskell, Clean,...) symbol == for equality.

It's an idea that is worth considering. It fits well with the consistent
use of the other C like operators as "||" and "&&" and the disposal of
"or".

> Physical reference equality should be used rather sparingly anyways so
> it is better perhaps that it not even be infix. 

I've seen somewhere the operator "===" for physical equality, infix
obviously. It's not really diffused but seems to me that is really
intuitive.

>     Another possible change along the same lines is having =/= or /= for 
> inequality, which happens to look a little more like the mathematical 
> symbol. 

Uhm ... I disagree here, changing an operator in favour of a more
diffused one is comfortable, adopting a new one from scratch just
because it look more like the mathematical symbol can be really
confusing ...

Cheers.

-- 
Stefano Zacchiroli - undergraduate student of CS @ Univ. Bologna, Italy
zack@cs.unibo.it | ICQ# 33538863 | http://www.cs.unibo.it/~zacchiro
"I know you believe you understood what you think I said, but I am not
sure you realize that what you heard is not what I meant!" -- G.Romney
-------------------
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