Evan Hanson <ev...@foldling.org> writes:

> Anyway, to get a string that *looks* like a keyword, the easiest option
> is probably to go via the written representation with something like:
>
>    (format "~s" foo:)
>
> However note that this is sensitive to the keyword-style parameter, as
> hinted at above:
>
>    (parameterize ((keyword-style #:prefix)) (format "~s" #:foo)) ; => ":foo"
>    (parameterize ((keyword-style #:suffix)) (format "~s" #:foo)) ; => "foo:"
>    (parameterize ((keyword-style #f))       (format "~s" #:foo)) ; => "#:foo"
>
> Hope that helps,

Yes, thanks.

I went with an error message if the prefix is a keyword suggesting to
use a string instead.

_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to