Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: Sameness - a pragmatic approach.

From: lmecir:mbox:vol:cz at: 11-Feb-2003 15:46

Hi Joel, ----- Original Message ----- From: "Joel Neely" ...
> Am I doing something stupid here? I just tried the following: > > >> foo: make object! [a: 1 b: "Hi!"] > >> baz: make object! [a: 1 b: "Hi!"] > >> equal? foo baz == false > >> equal? mold foo mold baz == true
this is an old issue. Nevertheless, object equality *is* defined: equal? foo foo ; == true This kind of equality is rather trivial, but IIRC the implementor didn't want to overcome all possible difficulties to use a more sensible definition. My EQUAL-STATE? equivalence is a trial to define something better for objects, nevertheless, I have given up for functions, because the natural functional equality isn't algorithmizable. What do you think, is there better functional equality than identity/sameness? Regards -L