all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: taylanbayirli@gmail.com (Taylan Ulrich Bayırlı/Kammer)
To: David Thompson <dthompson2@worcester.edu>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] gnu: Add soundtouch.
Date: Sun, 22 Feb 2015 02:01:31 +0100	[thread overview]
Message-ID: <87fv9ykbdg.fsf@taylan.uni.cx> (raw)
In-Reply-To: <87r3tiakp7.fsf@fsf.org> (David Thompson's message of "Sat, 21 Feb 2015 18:50:12 -0500")

David Thompson <dthompson2@worcester.edu> writes:

> Is the 'begin' form necessary here?  Also, when substituting a single
> file, you can just pass a string instead of a list of strings.
>
>     (and
>      (zero? (system* "sh" "bootstrap"))
>      (substitute* "configure"
>        (("/usr/bin/file") "file")))

Since phase procedures are expected to return non-false and the return
value of `substitute*' is probably unspecified, one should provide an
explicit return value, but this is done pretty much nowhere so I guess
it was needless and if we'll fix it we'll have to do it some other way.

(I think it would have been better if Scheme specified zero return
values for procedures called only for side-effect, so the above would
raise an error and not trap the language's users into situations where
they write code that "works by chance", but I guess it's way too late
for such a thing, and in Guix's codebase we will just rely on Guile
returning the special *unspecified* value for such procedures, which
works as a non-false value.)

Taylan

  reply	other threads:[~2015-02-22  1:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-21 23:23 [PATCH] gnu: Add soundtouch Taylan Ulrich Bayırlı/Kammer
2015-02-21 23:50 ` David Thompson
2015-02-22  1:01   ` Taylan Ulrich Bayırlı/Kammer [this message]
2015-02-24 17:41     ` Taylan Ulrich Bayırlı/Kammer
2015-02-24 20:05       ` Andreas Enge
2015-03-02 14:04       ` Mark H Weaver

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

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

  git send-email \
    --in-reply-to=87fv9ykbdg.fsf@taylan.uni.cx \
    --to=taylanbayirli@gmail.com \
    --cc=dthompson2@worcester.edu \
    --cc=guix-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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.