From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: prj@po.cwru.edu (Paul Jarc) Newsgroups: gmane.lisp.guile.user Subject: Re: Keyword syntax Date: Mon, 04 Oct 2004 14:51:03 -0400 Organization: What did you have in mind? A short, blunt, human pyramid? Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1096916101 25464 80.91.229.6 (4 Oct 2004 18:55:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 4 Oct 2004 18:55:01 +0000 (UTC) Cc: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Oct 04 20:54:52 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CEXz2-000326-00 for ; Mon, 04 Oct 2004 20:54:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CEY5d-0005og-A5 for guile-user@m.gmane.org; Mon, 04 Oct 2004 15:01:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CEY5Z-0005oP-5k for guile-user@gnu.org; Mon, 04 Oct 2004 15:01:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CEY5Y-0005o9-KI for guile-user@gnu.org; Mon, 04 Oct 2004 15:01:36 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CEY5Y-0005nz-HY for guile-user@gnu.org; Mon, 04 Oct 2004 15:01:36 -0400 Original-Received: from [129.22.104.47] (helo=mirapoint2.tis.cwru.edu) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CEXyj-0006WK-O8 for guile-user@gnu.org; Mon, 04 Oct 2004 14:54:33 -0400 Original-Received: from multivac.cwru.edu (multivac.ITS.CWRU.Edu [129.22.114.26]) by mirapoint2.tis.cwru.edu (MOS 3.4.3-CR) with SMTP id CHL67215; Mon, 4 Oct 2004 14:51:05 -0400 (EDT) Original-Received: (qmail 2877 invoked by uid 500); 4 Oct 2004 18:51:27 -0000 Original-To: Marius Vollmer In-Reply-To: (Marius Vollmer's message of "Mon, 04 Oct 2004 20:27:44 +0200") Mail-Copies-To: nobody Mail-Followup-To: Marius Vollmer , guile-user@gnu.org Original-Lines: 21 User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.user:3508 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:3508 Marius Vollmer 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