Hello Damien,
That is probably, because keywords themselves can look different in Kawa and
Racket.
https://www.gnu.org/software/kawa/Keywords.html (mentions both syntaxes, but
also mentions #:name being more portable)
https://docs.racket-lang.org/guide/keywords.html (only mentions #:name syn
i understand not all.
i suppose it makes sense .
in fact my problem was parsing a scheme program to generate another scheme
program.
So i'm in the realm of simple text and as i was just searching the good
display i did not understand more the problem.
and even between kawa and racket behavior diff
On Thu, Jan 4, 2024 at 6:36 AM Damien Mattei 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 Rac
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
On Thu, Jan 4, 2024 at 11:40 AM Tomas Volf <~@wolfsden.cz> wrot
On 2024-01-04 11:15:55 +0100, Damien Mattei wrote:
> Hi,
> why does
> (string->symbol "#:hello")
> $1 = #{#:hello}#
>
> gives #{#:hello}# in guile instead of #:hello ?
My understanding is that keywords are not the same as symbols, that is why you
get a different representation.
>
> like in Kawa o
Hi,
why does
(string->symbol "#:hello")
$1 = #{#:hello}#
gives #{#:hello}# in guile instead of #:hello ?
like in Kawa or Racket
i understand it is special to guile as i can write:
scheme@(guile-user)> #:hello
$1 = #:hello
but then how can i generate a #:hello from a string or a list of char?
r