From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Noah Lavine Newsgroups: gmane.lisp.guile.bugs Subject: bug#11198: problems reading data with a "read-hash-extend" registered reader Date: Tue, 24 Apr 2012 07:24:18 -0400 Message-ID: References: <87zkaka9xl.fsf@gnu.org> <87d37e83n7.fsf@netris.org> <87hawb3ms1.fsf@netris.org> <87mx63prwe.fsf@gnu.org> <87lillwnvl.fsf@pobox.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1335266730 30803 80.91.229.3 (24 Apr 2012 11:25:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 24 Apr 2012 11:25:30 +0000 (UTC) Cc: Mark H Weaver , Ludovic =?UTF-8?Q?Court=C3=A8s?= , 11198@debbugs.gnu.org, Klaus Stehle To: Andy Wingo Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Tue Apr 24 13:25:29 2012 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SMds9-0000NJ-Fw for guile-bugs@m.gmane.org; Tue, 24 Apr 2012 13:25:29 +0200 Original-Received: from localhost ([::1]:56060 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMds8-0003Gb-BM for guile-bugs@m.gmane.org; Tue, 24 Apr 2012 07:25:28 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58244) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMds2-0003GS-JS for bug-guile@gnu.org; Tue, 24 Apr 2012 07:25:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SMdrv-0000Ny-QS for bug-guile@gnu.org; Tue, 24 Apr 2012 07:25:22 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49122) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMdrv-0000Nr-Kg for bug-guile@gnu.org; Tue, 24 Apr 2012 07:25:15 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SMdsf-0001vF-UG for bug-guile@gnu.org; Tue, 24 Apr 2012 07:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noah Lavine Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-guile@gnu.org Resent-Date: Tue, 24 Apr 2012 11:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11198 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 11198-submit@debbugs.gnu.org id=B11198.13352667137324 (code B ref 11198); Tue, 24 Apr 2012 11:26:01 +0000 Original-Received: (at 11198) by debbugs.gnu.org; 24 Apr 2012 11:25:13 +0000 Original-Received: from localhost ([127.0.0.1]:50156 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SMdrt-0001u5-0X for submit@debbugs.gnu.org; Tue, 24 Apr 2012 07:25:13 -0400 Original-Received: from mail-iy0-f172.google.com ([209.85.210.172]:59197) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SMdrq-0001tq-DH for 11198@debbugs.gnu.org; Tue, 24 Apr 2012 07:25:11 -0400 Original-Received: by iazz13 with SMTP id z13so872979iaz.3 for <11198@debbugs.gnu.org>; Tue, 24 Apr 2012 04:24:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=JEKp0/PqfhBe8hsyzEQxxMtwfY9euMs3AbMoZBXCe4o=; b=oNC4+O4p28jNXTM3CD8wj5K0NBsXKnRF2LiFejJ6WQCt/UniLvfH3vSYCmKaz3GWZ+ DxAwEhgpAlOtmWbxLgf7yAMVA3FEQ1b6Tn2krXaaMGZH0JC9tAtsOX3VTDNIH7FrnbRQ SaIbQMcisNrQZm+eR/v1Ki6IG2VSJFy4LzKLOs2Jq3iyJLLk1ZrOPsjnKrug8zbPCUZt anohnji4EAO3ZfMDdW6au5PGa8R0dIMXnUDAcC72kiouHfb/T1Xco5qYr9N6jNAZ3PKb EGFfzh0dXItuE15Mhy0TTdXVVyUadYcvlKQ3T8w0kIyJWACfq54FZDxOXZQRVq8AcF/H rG8A== Original-Received: by 10.43.49.3 with SMTP id uy3mr4543193icb.2.1335266658110; Tue, 24 Apr 2012 04:24:18 -0700 (PDT) Original-Received: by 10.42.29.200 with HTTP; Tue, 24 Apr 2012 04:24:18 -0700 (PDT) In-Reply-To: <87lillwnvl.fsf@pobox.com> X-Google-Sender-Auth: vh5xB-A_SpcyZyq9eZV89teuK-g X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:6326 Archived-At: Hello, >> I think the reader should only return valid Scheme objects that have a >> read syntax (info "(r5rs) Lexical Structure"), and records are not among >> them. > > I agree, FWIW. This seems like circular logic to me - extending the reader should mean that new types can have read syntax. The problem here, I think, is that the compiler also needs to know how to serialize those types. Why don't we provide an interface to define a serializer as well as a reader, and have compile-assembly use these serializers? As long as each type has both a serializer and a reader, it should work fine. That also feels symmetrical, which I take as a good sign. :-) Noah