[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: symbol is nested in #{ ...... }#
|
From: |
Thompson, David |
|
Subject: |
Re: symbol is nested in #{ ...... }# |
|
Date: |
Thu, 4 Jan 2024 14:04:48 -0500 |
On Thu, Jan 4, 2024 at 6:36 AM Damien Mattei <damien.mattei@gmail.com> wrote:
>
> thank you very much Tomas,
> it solved my problem:
> (symbol->keyword (list->symbol ....
> me too i was digging the manual for 2 hours :-)
> Damien
> note: seems a bit weird anyway that guile react differently in this case
> than Kawa and Racket
Guile's behavior makes sense to me. #{...}# is syntax for symbols, not
keywords. Symbols can contain any arbitrary characters. Starting a
symbol with "#:" doesn't make it a keyword. Would you expect
(string->symbol "#:hello") to return a keyword? I wouldn't.
- Dave