chicken-users
[Top][All Lists]
Advanced

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

[Chicken-users] keyword->string and back


From: Alain MELLAN
Subject: [Chicken-users] keyword->string and back
Date: Wed, 21 Apr 2004 10:25:31 -0700

With (keyword-style #:prefix), I get the following:

(keyword->string :foo)  => "foo"
(string->keyword "foo") => :foo

Also, a (format "~A" :foo) gives "foo", while (write :foo) gives :foo. 
It seems only (write) ensures the write/read invariant behavior.

I would like to have (format "~A" :foo) => ":foo", and (keyword->string
:foo) => ":foo"  (depending on the keyword-style, of course).

Does that make sense?

-- alain.






reply via email to

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