guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Will guile support R7RS terminating "equal?" in the presence of cycl


From: Stefan Israelsson Tampe
Subject: Re: Will guile support R7RS terminating "equal?" in the presence of cycle?
Date: Tue, 4 Sep 2012 07:35:03 +0200

Yes, so it is no real replacement. For that we need yo hamdle vectors , structs etc. Eg cycles is only allowed in the pair part.

If we wan't this for the general case, please ask!

/stefan

Den 3 sep 2012 23:12 skrev "Ludovic Courtès" <address@hidden>:
Hi,

Stefan Israelsson Tampe <address@hidden> skribis:

>   (define (c-equal-1 x y)
>     (match x
>       (((and xx (_ . _)) . _)

[...]

>       ((xx . _)

[...]

>       (_ (equal? x y))))

Doesn’t this mean that ‘cycle-equal?’ falls back to ‘equal?’ for
non-pairs?

Ludo’.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]