Comparison of two uninterned symbol Jakub T. Jankiewicz (25 Jan 2025 12:22 UTC)
Re: Comparison of two uninterned symbol Daphne Preston-Kendal (25 Jan 2025 12:24 UTC)

Re: Comparison of two uninterned symbol Daphne Preston-Kendal 25 Jan 2025 12:23 UTC

See the R7RS small definitions of those predicates, which refer to the behaviour of symbol=? as appropriate

Daphne

> On 25 Jan 2025, at 13:21, Jakub T. Jankiewicz <xxxxxx@onet.pl> wrote:
>
> It seems that the SRFI don't specify the output of this expression:
>
> (let ((a (string->uninterned-symbol "foo"))
>     (b (string->uninterned-symbol "foo")))
> (list
> (eq? a b)
> (eqv? a b)
> (equal? a b)
> (symbol=? a b)))
>
> It only specify symbol=?
>
> Maybe it's obvious, but I don't know exactly how to compare those two symbols.
>
> Should it be #f #f #f #t? I think this should be included in the SRFI so
> there are no confusion.
>
> --
> Jakub T. Jankiewicz, Senior Front-End Developer
> https://jcubic.pl/me
> https://lips.js.org
> https://koduj.org