[gambit-list] Implementation of equal? for recursive structures
feeley at iro.umontreal.ca
Thu Sep 14 08:28:28 EDT 2017
> On Sep 14, 2017, at 4:15 AM, Dimitris Vyzovitis <vyzo at hackzen.org> wrote:
> Can we get an implementation of equal? that works for recursive structures per r7rs?
> It doesn't need to be called equal?, it can be called equal-shared? for instance.
Yes that would be interesting to have.
> I have an initial implementation that works with shared structures, but there is an edge case:
> If there is a shared object in the structure (without recursion) it needs to be eq? to its counterpart.
Have you looked at how other implementations of Scheme do this?
More information about the Gambit-list