[nem-en] Nemerle 0.2.0 released
Marcin 'Qrczak' Kowalczyk
qrczak at knm.org.pl
Mon Sep 13 20:44:46 CEST 2004
Ricardo Fernández Pascual <r.fernandez at ditec.um.es> writes:
> Maybe it would be a good idea having another operator for reference
> equality? Like '===' or something similar.
I believe that in languages where important types like strings and
lists are immutable, there exists a single relation which is the
appropriate meaning of equality most of the time.
It's defined as identity if arguments are mutable, and as
componentwise equality when they are immutable (and specially
for builtin types like numbers).
http://home.pipeline.com/~hbaker1/ObjectIdentity.html
This would imply that a fallback to identity is not bad, as long as
immutable "pure compound value" types are compared field by field by
default.
I wonder what types have had the mentioned equality bug in Nemerle
compiler?
--
__("< Marcin Kowalczyk
\__/ qrczak at knm.org.pl
^^ http://qrnik.knm.org.pl/~qrczak/
More information about the devel-en
mailing list