From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: No Itisnt Newsgroups: gmane.lisp.guile.devel Subject: Re: Custom printers for SRFI-9 records Date: Tue, 25 May 2010 23:18:36 -0500 Message-ID: References: <87typvrdja.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=00c09fa2195e640bf70487779147 X-Trace: dough.gmane.org 1274847528 2825 80.91.229.12 (26 May 2010 04:18:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 26 May 2010 04:18:48 +0000 (UTC) To: guile-devel Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed May 26 06:18:47 2010 connect(): No such file or directory Return-path: Envelope-to: guile-devel@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 1OH84q-0007f1-6T for guile-devel@m.gmane.org; Wed, 26 May 2010 06:18:44 +0200 Original-Received: from localhost ([127.0.0.1]:60853 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OH84p-00056S-Ht for guile-devel@m.gmane.org; Wed, 26 May 2010 00:18:43 -0400 Original-Received: from [140.186.70.92] (port=53470 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OH84l-00054B-Oi for guile-devel@gnu.org; Wed, 26 May 2010 00:18:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OH84k-0006oG-1q for guile-devel@gnu.org; Wed, 26 May 2010 00:18:39 -0400 Original-Received: from mail-qy0-f187.google.com ([209.85.221.187]:53667) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OH84j-0006oB-V8 for guile-devel@gnu.org; Wed, 26 May 2010 00:18:38 -0400 Original-Received: by qyk17 with SMTP id 17so7455469qyk.12 for ; Tue, 25 May 2010 21:18:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=F2mx88LFqeu3GnhQvDajV/XPPcOAskPQBNSNVomi4iw=; b=OJTveOBqg/6tEsZiHuwt51dOl34upBy6AXBrOr1A30AKwJG3+/8AxSyqaoVXa7iBdJ oh3rQaV7vw0Ka3VrfHWIG/ntxnUdD/0wIbQ0UMigoMhKpA1KOG0GAMVyxvo6nteP88iM iU/ArR0/sKAN800tegTZj6X1sPhDhRAn1MfBk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=HZOfnJcMHOz6YZRoTbvjUo56jSfX+YQePE1pPO9JpDxwlrAWxuQ9q8knTGUtxEB8im W2uNsu6+ZVNhUEfmSFqOxM1PzimNsy5hzIr2SMl5GrTf7gA/zZG7MLWm2FMI4wX31P50 xduqPvHZTIw7OjuZQIhl75Di5jeZpTT9Vf9Xg= Original-Received: by 10.224.43.100 with SMTP id v36mr4602689qae.201.1274847516952; Tue, 25 May 2010 21:18:36 -0700 (PDT) Original-Received: by 10.229.239.84 with HTTP; Tue, 25 May 2010 21:18:36 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:10369 Archived-At: --00c09fa2195e640bf70487779147 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On Tue, May 25, 2010 at 3:56 PM, No Itisnt wrote= : > I agree. Here's a patch that adds (srfi srfi-9 gnu) with > set-record-printer! and adds a subsection to the SRFI-9 part of the > manual for it. > I can go ahead and commit it, if that's OK. > > On Tue, May 25, 2010 at 2:23 PM, Ludovic Court=E8s wrote: >> Hello! >> >> No Itisnt writes: >> >>> One thing I'm missing, and maybe I just didn't see it, is a way to >>> define custom printers for SRFI-9 records. >> >> I agree that it=92s generally useful, but I think SRFI modules should no= t >> diverge from the spec, or when they do, make it separate, as was done >> with (srfi srfi-4 gnu). >> >> What do you think? >> >> Thanks, >> Ludo=92. >> >> >> > --00c09fa2195e640bf70487779147 Content-Type: application/octet-stream; name="define-record-printer.patch" Content-Disposition: attachment; filename="define-record-printer.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_g9nnaci01 ZGlmZiAtLWdpdCBhL2RvYy9yZWYvc3JmaS1tb2R1bGVzLnRleGkgYi9kb2MvcmVmL3NyZmktbW9k dWxlcy50ZXhpCmluZGV4IDBkMTkyZmEuLmIzZjk5NDYgMTAwNjQ0Ci0tLSBhL2RvYy9yZWYvc3Jm aS1tb2R1bGVzLnRleGkKKysrIGIvZG9jL3JlZi9zcmZpLW1vZHVsZXMudGV4aQpAQCAtMTkyMiw2 ICsxOTIyLDM1IEBAIFRoZSBmdW5jdGlvbnMgY3JlYXRlZCBieSBAY29kZXtkZWZpbmUtcmVjb3Jk LXR5cGV9IGFyZSBvcmRpbmFyeQogdG9wLWxldmVsIEBjb2Rle2RlZmluZX1zLiAgVGhleSBjYW4g YmUgcmVkZWZpbmVkIG9yIEBjb2Rle3NldCF9IGFzCiBkZXNpcmVkLCBleHBvcnRlZCBmcm9tIGEg bW9kdWxlLCBldGMuCiAKK0BtZW51CisqIFNSRkktOSBDdXN0b20gcHJpbnRlcnM6OiAgICAgIEN1 c3RvbWl6aW5nIHByaW50IGJlaGF2aW9yLgorQGVuZCBtZW51CisKK0Bub2RlIFNSRkktOSBDdXN0 b20gcHJpbnRlcnMKK0BzdWJzdWJzZWN0aW9uIEN1c3RvbSBwcmludGVycworQGNpbmRleCByZW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