From: Andy Wingo <wingo@pobox.com>
To: Wolfgang J Moeller <wjm@heenes.com>
Cc: bug-guile@gnu.org
Subject: Re: scm_i_print_symbol_name() in libguile/print.c ...
Date: Mon, 11 Apr 2011 17:16:04 +0200 [thread overview]
Message-ID: <m3bp0cn7ij.fsf@unquote.localdomain> (raw)
In-Reply-To: <alpine.LNX.2.00.1104111456180.13176@gwdw03.gwdg.de> (Wolfgang J. Moeller's message of "Mon, 11 Apr 2011 15:08:51 +0200 (CEST)")
Hello again :)
On Mon 11 Apr 2011 15:08, Wolfgang J Moeller <wjm@heenes.com> writes:
> Having any sort of escapes mixed with #{ }# notation would be incompatible -
> maybe you ought no longer generate #{ }# on output, but switch to R6RS escapes
> throughout. Since there has been (in my understanding) no way to read symbols
> containing "}#" so far, just keep the "transparent" treatment of those
> guile-private brackets on input.
We have a choice of ensuring that:
(equal? (with-input-from-string (object->string sym) read) sym)
or preserving the old behavior that introduced spurious backslashes in
the symbol names. Incidentally it does appear that }# could be read, in
theory, given the fact that }# in a name would be written out as }\#.
Strange stuff. I think interpreting \ as a general escape is compatible
with the intentions of that code, and \x...; is generally compatible as
well, if we assume that nobody was escaping x in their own code, because
Guile sure wasn't.
Anyway, I do think that providing an option to just use r6rs syntax for
serialization is a good idea. Unfortunately you can't do it in general,
because there is the #{}# case to deal with, but oh well.
Cheers,
Andy
--
http://wingolog.org/
prev parent reply other threads:[~2011-04-11 15:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-05 15:27 scm_i_print_symbol_name() in libguile/print.c Wolfgang J Moeller
2011-04-11 11:50 ` Andy Wingo
2011-04-11 12:23 ` Wolfgang J Moeller
2011-04-11 15:00 ` Andy Wingo
2011-04-11 11:50 ` Andy Wingo
2011-04-11 13:08 ` Wolfgang J Moeller
2011-04-11 15:16 ` Andy Wingo [this message]
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=m3bp0cn7ij.fsf@unquote.localdomain \
--to=wingo@pobox.com \
--cc=bug-guile@gnu.org \
--cc=wjm@heenes.com \
/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).