[plt-scheme] Naming an equality operator

From: Carl Eastlund (carl.eastlund at gmail.com)
Date: Fri Feb 17 21:11:17 EST 2006

On 2/17/06, Geoffrey Knauth <geoff at knauth.org> wrote:
> On Feb 17, 2006, at 19:18, Carl Eastlund wrote:
> > One personal coding project I have been working on is an extensible
> > equality operator (think equal?, but you can override its behavior on
> > certain types of values it will encounter along its traversal).
> > Before I do anything rash like use it in distributed code, or
> > distribute it as a planet package, I'd like to have a good name for
> > the operator.
>
> How about:  equal?!

equal? - the predicate which reports whether values are structurally identical.

equal?! - the operator which really expects values to be identical,
and raises exception exn:fail:huh?! when they aren't.

equal! - the operator which fixes values to BE structurally identical.

equal. - the operator which mimics equal!, but doesn't get so excited about it.

--
Carl Eastlund
"Cynical, but technically correct."


Posted on the users mailing list.