guile-user
[Top][All Lists]
Advanced

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

Re: Goops generic-functions and srfi-64 tests


From: Daniel Llorens
Subject: Re: Goops generic-functions and srfi-64 tests
Date: Sun, 23 Nov 2014 14:07:16 +0100

On 22 Nov 2014, at 18:00, address@hidden wrote:

> Why it happens, is clear. Since scheme macros are hygienic, equal? in
> expansion of `assert-equal` is sealed to refer to (@@ (srfi srfi-64)
> equal?). I belive, in presence of goops, it would be nice add
> 
>       (define-syntax equal?
>            (identifier-syntax (module-ref (current-module) 'equal?))
> 
> I do not see, what would it break, but maybe I am missing something?

SRFI-64 has all these specific binary predicates: test-eqv, test-equal, 
test-eq, test-approximate, but no way to pass your own predicate, which is 
annoying. Please correct me if I'm wrong.

An extension to be able to pass your own predicate may be more generally useful.






reply via email to

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