unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: prj@po.cwru.edu (Paul Jarc)
Cc: guile-user@gnu.org
Subject: Re: Keyword syntax
Date: Mon, 04 Oct 2004 14:51:03 -0400	[thread overview]
Message-ID: <m3y8imqpua.fsf@multivac.cwru.edu> (raw)
In-Reply-To: <ljr7oe49un.fsf@troy.dt.e-technik.uni-dortmund.de> (Marius Vollmer's message of "Mon, 04 Oct 2004 20:27:44 +0200")

Marius Vollmer <marius.vollmer@uni-dortmund.de> wrote:
> As to 1), the simplest change would be to just do the equivalent of
> (symbol->keyword (read port)).

I like this way too.

>         guile> #:12
>         ERROR: Wrong type (expecting symbol): 12

You could add a bit of backward compatibility:
(let ((obj (read port)))
  (symbol->keyword
   (if (symbol? obj)
     obj
     (string->symbol (object->string obj)))))

But I'm not sure this would be worth it, or if there may be corner
cases where it produces a different keyword.


paul


_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user


  parent reply	other threads:[~2004-10-04 18:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-04 18:27 Keyword syntax Marius Vollmer
2004-10-04 18:44 ` Roland Orre
2004-10-04 18:51 ` Paul Jarc [this message]
2004-10-18 11:56   ` Marius Vollmer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3y8imqpua.fsf@multivac.cwru.edu \
    --to=prj@po.cwru.edu \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).