From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.bugs Subject: Re: scm_i_print_symbol_name() in libguile/print.c ... Date: Mon, 11 Apr 2011 17:16:04 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1302534966 12113 80.91.229.12 (11 Apr 2011 15:16:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 11 Apr 2011 15:16:06 +0000 (UTC) Cc: bug-guile@gnu.org To: Wolfgang J Moeller Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Mon Apr 11 17:16:02 2011 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q9IqO-00053w-SV for guile-bugs@m.gmane.org; Mon, 11 Apr 2011 17:16:01 +0200 Original-Received: from localhost ([127.0.0.1]:48459 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q9IqN-0003E4-MF for guile-bugs@m.gmane.org; Mon, 11 Apr 2011 11:15:59 -0400 Original-Received: from [140.186.70.92] (port=36694 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q9Iq6-0003AA-96 for bug-guile@gnu.org; Mon, 11 Apr 2011 11:15:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q9Iq3-00040t-Ey for bug-guile@gnu.org; Mon, 11 Apr 2011 11:15:40 -0400 Original-Received: from a-pb-sasl-sd.pobox.com ([64.74.157.62]:54027 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9Iq3-00040k-B8 for bug-guile@gnu.org; Mon, 11 Apr 2011 11:15:39 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 4183D46FE; Mon, 11 Apr 2011 11:17:35 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=CxGldeLPT/JpVVNrPVT8rZdneBY=; b=l2PBA8 W62CN07TW9rLmG7y7ha6bjXz0/J9t7/7o+3HD0S55aWJ04eXF85Hr43IzxSUu74R qd+q8HnXN7/cEAn9lBRPWiwg89ASrz3yJRM0yeFbm/Yqdp+S9s21jLX0dvEJjCbG SfgV0mal5G0q/T2qBJWVDhxstbqNchqTdKQ7I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=Qn2i49K45CRCW/CVy9EIXcP3L2GU2tvs r8dTMs9/HbBLBHQ8t69L8t6ShdG8j8t6R8OM8pj109kVRH7qADWa7W6FWqvdnJDQ MhOC6+F1kjfCCnETYrQuEz8exj1JcaDMGjpn5wcfSdzXzryU7rV+yeshKj1zZOhL yfgP9P/gV0w= Original-Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 2F9BB46FD; Mon, 11 Apr 2011 11:17:33 -0400 (EDT) Original-Received: from unquote.localdomain (unknown [90.164.198.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id 78C8246FC; Mon, 11 Apr 2011 11:17:31 -0400 (EDT) In-Reply-To: (Wolfgang J. Moeller's message of "Mon, 11 Apr 2011 15:08:51 +0200 (CEST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Pobox-Relay-ID: D2FBD382-644E-11E0-A3F3-E8AB60295C12-02397024!a-pb-sasl-sd.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 64.74.157.62 X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:5447 Archived-At: Hello again :) On Mon 11 Apr 2011 15:08, Wolfgang J Moeller 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/