[racket-dev] egal?

From: Ryan Culpepper (ryan at cs.utah.edu)
Date: Mon Dec 17 15:50:10 EST 2012

It sounds like an easier solution would be to switch from boxes to a 
mutable struct with one field that overrides equal? and hash-code.

Ryan


On 12/17/2012 03:38 PM, J. Ian Johnson wrote:
> Short message: is there any chance of getting egal and egal hashes
> any time soon?
>
> Longer message: I have a situation where I key my hashes with
> immutable structs, but something they contain has a box that later is
> updated and never changed. I'd really like for the struct value
> before the set-box! to be keyed to and positively compare to the
> value after this set-box! happens. Otherwise I have to do something
> abstraction-breaking to separate these boxes from the structures
> which would likely introduce more overhead (yet another hash
> lookup).
>
> I'm going to look into just hacking egal in myself, but want to know
> what the other devs know about this.
> Thanks,
> -Ian
> _________________________
>    Racket Developers list:
>    http://lists.racket-lang.org/dev
>


Posted on the dev mailing list.