From: Thien-Thi Nguyen <ttn@gnu.org>
To: Andy Wingo <wingo@pobox.com>
Cc: guile-user@gnu.org, guile-sources@gnu.org
Subject: Re: xdgdirs 1.0
Date: Sat, 07 Sep 2013 11:10:03 +0200 [thread overview]
Message-ID: <87r4d1atg4.fsf@zigzag.favinet> (raw)
In-Reply-To: <87y579xc2x.fsf@pobox.com> (Andy Wingo's message of "Sat, 07 Sep 2013 10:36:38 +0200")
[-- Attachment #1: Type: text/plain, Size: 768 bytes --]
() Andy Wingo <wingo@pobox.com>
() Sat, 07 Sep 2013 10:36:38 +0200
> (define mentioned? ...)
You could do this as (cute member <> (command-line)),
having imported srfi-26.
> (cond ((mentioned? "--help") ...)
Here I think "when" is much more readable. Also, you can use
"(current-file-name)" for a more reliable way to get the current
file name.
> (cond ((mentioned? "--version") ...)
You can use (ice-9 command-line)'s version-etc.
Thanks for the tips. I'll try to keep these in mind.
--
Thien-Thi Nguyen
GPG key: 4C807502
(if you're human and you know it)
read my lisp: (responsep (questions 'technical)
(not (via 'mailing-list)))
=> nil
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
prev parent reply other threads:[~2013-09-07 9:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-05 10:42 xdgdirs 1.0 Thien-Thi Nguyen
2013-09-07 8:36 ` Andy Wingo
2013-09-07 9:10 ` Thien-Thi Nguyen [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=87r4d1atg4.fsf@zigzag.favinet \
--to=ttn@gnu.org \
--cc=guile-sources@gnu.org \
--cc=guile-user@gnu.org \
--cc=wingo@pobox.com \
/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).