[nem-en] Nemerle 0.2.0 released
Ricardo Fernández Pascual
r.fernandez at ditec.um.es
Mon Sep 13 18:56:50 CEST 2004
El lun, 13-09-2004 a las 18:36, Mark Friedman escribió:
> I'm curious about the rationale for having the '==' operator not
> fallback to reference equality? I guess that it's not entirely clear
> to me what the '==' operator actually means in Nemerle. Is it
> syntactic sugar for some method on System.Object (or its Nemerle
> proxy)? Is there some other method that returns true for reference
> equality? Is there an operator corresponding to that method?
I guess the main rationale is having more clarity and avoid confusing
two independent concepts (equality and identity). However, I'm
interested in the "official" explanation too.
Maybe it would be a good idea having another operator for reference
equality? Like '===' or something similar.
<not-serious>
We could have =@= for checking structural equivalence, =:= for
arithmetic equivalence, = for unificaction and == for something else,
like Prolog.
</not-serious>
--
Ricardo Fernández Pascual
r.fernandez at ditec.um.es
Murcia. España.
More information about the devel-en
mailing list