unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Tobias Gerdin <tgerdin@gmail.com>
To: guile-devel@gnu.org
Subject: gettext #" reader macro?
Date: Thu, 6 Oct 2011 14:35:37 +0200	[thread overview]
Message-ID: <CAJiKzQMQYoEjmRtQXm6LmH-6umMzizhnMUrm80ubgwOsYZMHdQ@mail.gmail.com> (raw)

Hello,

I was looking through http://www.gnu.org/software/guile/ideas.html and
the gettext support. I thought this would be a small fun thing to hack
on but apparently it is already implemented as of quite some time.

For convenient use doing something like (define _ gettext) is
recommended. The #"text" syntax that the above page proposes is more
concise and in my opinion quite nice, so I did the below and stuck it
in boot-9.scm:

(read-hash-extend #\"
                  (lambda (c port)
                    `(gettext ,((module-ref
                                 (resolve-interface '(ice-9 rdelim))
                                 'read-delimited)
                                ;; FIXME skipped quoted \"
                                "\"" port))))

Should we include sth like this?

-Tobias



             reply	other threads:[~2011-10-06 12:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-06 12:35 Tobias Gerdin [this message]
2011-10-08 21:59 ` gettext #" reader macro? Ludovic Courtès

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=CAJiKzQMQYoEjmRtQXm6LmH-6umMzizhnMUrm80ubgwOsYZMHdQ@mail.gmail.com \
    --to=tgerdin@gmail.com \
    --cc=guile-devel@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).