unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: taylanbayirli@gmail.com (Taylan Ulrich B.)
To: Chaos Eternal <chaoseternal@shlug.org>
Cc: guile-user <guile-user@gnu.org>
Subject: Re: pretty-print for 1+
Date: Wed, 18 Sep 2013 20:57:34 +0200	[thread overview]
Message-ID: <871u4mhs9t.fsf@taylan.uni.cx> (raw)
In-Reply-To: <CAGyY8Ntrmk8N8HxsS9o-9jfyNj54LkcSNXafNL=sMXCww3uObQ@mail.gmail.com> (Chaos Eternal's message of "Wed, 18 Sep 2013 11:27:35 +0800")

Chaos Eternal <chaoseternal@shlug.org> 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.



      reply	other threads:[~2013-09-18 18:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-11 18:31 pretty-print for 1+ Brian Killian
2013-09-12 22:04 ` Ludovic Courtès
2013-09-14 20:06   ` Brian Killian
2013-09-17 10:02     ` Ludovic Courtès
2013-09-18  3:27       ` Chaos Eternal
2013-09-18 18:57         ` Taylan Ulrich B. [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871u4mhs9t.fsf@taylan.uni.cx \
    --to=taylanbayirli@gmail.com \
    --cc=chaoseternal@shlug.org \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).