From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: taylanbayirli@gmail.com (Taylan Ulrich B.) Newsgroups: gmane.lisp.guile.user Subject: Re: pretty-print for 1+ Date: Wed, 18 Sep 2013 20:57:34 +0200 Message-ID: <871u4mhs9t.fsf@taylan.uni.cx> References: <87li313de7.fsf@gnu.org> <87fvt3hil4.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1379530679 9213 80.91.229.3 (18 Sep 2013 18:57:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Sep 2013 18:57:59 +0000 (UTC) Cc: guile-user To: Chaos Eternal Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Sep 18 20:58:02 2013 Return-path: Envelope-to: guile-user@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 1VMMwr-00065C-R9 for guile-user@m.gmane.org; Wed, 18 Sep 2013 20:58:01 +0200 Original-Received: from localhost ([::1]:48491 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMMwr-0007k0-Cb for guile-user@m.gmane.org; Wed, 18 Sep 2013 14:58:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54624) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMMwd-0007j1-4v for guile-user@gnu.org; Wed, 18 Sep 2013 14:57:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VMMwW-0000Nw-8f for guile-user@gnu.org; Wed, 18 Sep 2013 14:57:47 -0400 Original-Received: from mail-ea0-x232.google.com ([2a00:1450:4013:c01::232]:47123) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMMwW-0000Nd-0S for guile-user@gnu.org; Wed, 18 Sep 2013 14:57:40 -0400 Original-Received: by mail-ea0-f178.google.com with SMTP id a15so3628471eae.23 for ; Wed, 18 Sep 2013 11:57:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=jzm6E8oMaVlwFu7E5anbogapR11dqKvdNy+clcpqDo4=; b=qftK2Tk8oPHx26imc8t5uesw6/+Xcr5610vW0HSY1e6OxNmi+NfjIdaQ0mgEIbcEzO 6E+RX3gOUpFeLchmzqVWPnX28YuftPnuZideYRwNA3FhECJmAI+37YkVmQmo4YgIJX5z 3Mt0JnYcVjrLKeWezrYN0T0SbFjXeYm3pdqucZIebrNWp1FX+D3cGqD/BK1TRcyP0JpH RVZyVGpLc3xiMr0F4U+u+9A+Ocq7Y7/1W6bFbeVlDKfoYgBoH1wgOeDGvOP2+BJdYxRw Jjin++13FEFhRYB1fj/PJaJgtOA1G/bdz30GLUSJgOgZCE+H8QLmcOFo/4C2/rpMrJHe j8oA== X-Received: by 10.14.37.4 with SMTP id x4mr62102514eea.16.1379530658184; Wed, 18 Sep 2013 11:57:38 -0700 (PDT) Original-Received: from taylan.uni.cx (p4FD92A4B.dip0.t-ipconnect.de. [79.217.42.75]) by mx.google.com with ESMTPSA id y47sm5169180eew.12.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 18 Sep 2013 11:57:37 -0700 (PDT) In-Reply-To: (Chaos Eternal's message of "Wed, 18 Sep 2013 11:27:35 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c01::232 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:10818 Archived-At: Chaos Eternal writes: > In guile-scsh, user would like the guile recognize -i as symbols > rather than complex numbers, is there any way? I doubt that there is a way. Arguably, one should use a different mechanism to represent command-line switches. Keyword symbols would probably be suitable for this, and if #:foo is too verbose, one can (read-set! keywords 'prefix) and use :foo instead. I don't know if it would require a substantial change to Scsh, and even if not, it would certainly be an unportable extension. Also, arguably, the usage of stand-alone keyword symbols as arguments to a function (as opposed to using them to mark keyword arguments) is an abuse of their first-class nature in Guile, which might be subject to change in the future.