From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Marius Vollmer Newsgroups: gmane.lisp.guile.user Subject: Re: Keyword syntax Date: Mon, 18 Oct 2004 13:56:10 +0200 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 1098100854 16122 80.91.229.6 (18 Oct 2004 12:00:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 18 Oct 2004 12:00:54 +0000 (UTC) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Oct 18 14:00:41 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 1CJWBs-0001Ps-00 for ; Mon, 18 Oct 2004 14:00:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CJWJA-00058c-Cq for guile-user@m.gmane.org; Mon, 18 Oct 2004 08:08:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CJWJ2-00056q-Mz for guile-user@gnu.org; Mon, 18 Oct 2004 08:08:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CJWFE-0003OW-UW for guile-user@gnu.org; Mon, 18 Oct 2004 08:04:10 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CJWFC-0003OJ-1l for guile-user@gnu.org; Mon, 18 Oct 2004 08:04:06 -0400 Original-Received: from [129.217.163.1] (helo=mail.dt.e-technik.uni-dortmund.de) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CJW7b-0008Ak-J5 for guile-user@gnu.org; Mon, 18 Oct 2004 07:56:15 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.dt.e-technik.uni-dortmund.de (Postfix) with ESMTP id 8D75543E5D for ; Mon, 18 Oct 2004 13:56:13 +0200 (CEST) Original-Received: from mail.dt.e-technik.uni-dortmund.de ([127.0.0.1]) by localhost (krusty [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 00848-05-4 for ; Mon, 18 Oct 2004 13:56:13 +0200 (CEST) Original-Received: from troy.dt.e-technik.uni-dortmund.de (troy.dt.e-technik.uni-dortmund.de [129.217.163.17]) by mail.dt.e-technik.uni-dortmund.de (Postfix) with ESMTP id 4FD1D43D95 for ; Mon, 18 Oct 2004 13:56:11 +0200 (CEST) Original-Received: by troy.dt.e-technik.uni-dortmund.de (Postfix, from userid 520) id 81EF0B9A9; Mon, 18 Oct 2004 13:56:10 +0200 (CEST) Original-To: guile-user@gnu.org In-Reply-To: (Paul Jarc's message of "Mon, 04 Oct 2004 14:51:03 -0400") User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) X-Virus-Scanned: by amavisd-new at dt.e-technik.uni-dortmund.de 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:3587 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:3587 prj@po.cwru.edu (Paul Jarc) writes: > 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. Ok, I'll keep it that way then. >> 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. This wouldn't be very much backwards compatible, I'm afraid, since 'read' is very much different from reading a token (with an internal reader function). We could keep more backwards compatability by continuing to read the keyword name as a token, but only acception names that are proper symbol names. Should we? _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user