From: Paul Smith <psmith@gnu.org>
To: Thien-Thi Nguyen <ttn@gnuvola.org>
Cc: guile-user@gnu.org
Subject: Re: Guile support in GNU make
Date: Sun, 15 Jan 2012 15:49:18 -0500 [thread overview]
Message-ID: <1326660558.3482.268.camel@homebase> (raw)
In-Reply-To: <8739bgk9p3.fsf@gnuvola.org>
On Sun, 2012-01-15 at 21:11 +0100, Thien-Thi Nguyen wrote:
> [desirability of #t => "t" and #f => ""]
>
> Thanks. Now that i understand the motivation, i think the current
> way is fine. You should move this excellent example into the docs.
OK I'll try to find a realistic example to make this more clear.
> > Oh yeah, i forgot: I think Make vars should not be accessed by a
> > Scheme string, but rather a symbol
>
> Well, my concern about this is that in GNU make, anyway, we very often
> use constructed variable names. I would assume that the same would be
> true in Guile procedures, which means it will more be convenient to
> store variable names in strings in Guile (it seems to me) so they can be
> more easily manipulated. Of course you can always use symbol->string
> etc.
>
> Guile has both ‘string-append’ and ‘symbol-append’ as well as the other
> string-manipulation procedures, so the convenience argument is not so
> convicing. But why XOR instead of OR? It's no big deal to...
>
> But is this worth it, to require the Guile user to always perform
> this operation when we could do it automatically?
>
> ...support either string or symbol argument. The current implementation,
> i.e., ‘(format #f "$(~A)" X)’ will DTRT. All it needs is documentation.
Yes that's true. OK I'll update the documentation.
Thanks!
--
-------------------------------------------------------------------------------
Paul D. Smith <psmith@gnu.org> Find some GNU make tips at:
http://www.gnu.org http://make.mad-scientist.net
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
next prev parent reply other threads:[~2012-01-15 20:49 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-14 19:55 Guile support in GNU make Paul Smith
2012-01-15 8:51 ` Thien-Thi Nguyen
2012-01-15 12:33 ` Thien-Thi Nguyen
2012-01-15 16:12 ` Paul Smith
2012-01-15 20:11 ` Thien-Thi Nguyen
2012-01-15 20:49 ` Paul Smith [this message]
2012-01-15 22:02 ` Ludovic Courtès
2012-01-16 14:07 ` Paul Smith
2012-01-17 22:42 ` Ludovic Courtès
2012-01-17 23:26 ` Paul Smith
2012-01-19 20:42 ` Ludovic Courtès
2012-01-19 22:14 ` Ludovic Courtès
[not found] <1316557011.28907.237.camel@homebase>
[not found] ` <1326572016.3482.144.camel@homebase>
[not found] ` <20120122182923.GB3460@mini.zxlink>
2012-01-22 21:56 ` Paul Smith
2012-01-23 6:01 ` Thien-Thi Nguyen
2012-01-23 6:08 ` Thien-Thi Nguyen
2012-01-29 20:05 ` Paul Smith
2012-01-31 19:17 ` Kirill Smelkov
2012-01-31 21:32 ` Paul Smith
2012-01-25 23:45 ` 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=1326660558.3482.268.camel@homebase \
--to=psmith@gnu.org \
--cc=guile-user@gnu.org \
--cc=ttn@gnuvola.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).