unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Clément Lassieur" <clement@lassieur.org>
To: Arun Isaac <arunisaac@systemreboot.net>
Cc: guix-devel@gnu.org
Subject: Re: Why should build phases not return unspecified values?
Date: Sun, 17 Dec 2017 11:35:12 +0100	[thread overview]
Message-ID: <876095bq1r.fsf@lassieur.org> (raw)
In-Reply-To: <cu7o9mx3gsh.fsf@systemreboot.net>

Arun Isaac <arunisaac@systemreboot.net> writes:

> Alex Vong <alexvong1995@gmail.com> writes:
>
>> I think the problem is that when the scheme standard says "the returned
>> value is unspecified", it means anything can be returned. In this case,
>> guile choose to return an unspecified value to avoid returning an
>> arbitary value.
>>
>> I think the answer written by soegaard in [0] explains it pretty well.
>>
>> [0]: https://stackoverflow.com/questions/28910911/detecting-unspecified-in-scheme-list
>
> This is new to me. But, since we only use the Guile implementation, I
> think we should be ok with phases returning #<unspecified>.

But is there any guarantee that a Guile function returning
#<unspecified> won't return, say, #f in later versions?  If it does,
there would be a bug in phases that don't add #t at the end.

  reply	other threads:[~2017-12-17 10:35 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-16 23:28 Why should build phases not return unspecified values? Arun Isaac
2017-12-17  7:03 ` Pjotr Prins
2017-12-17  7:10 ` Alex Vong
2017-12-17  8:22   ` Arun Isaac
2017-12-17 10:35     ` Clément Lassieur [this message]
2017-12-18  9:40 ` Andy Wingo
2017-12-19 21:35 ` Mark H Weaver
2017-12-20  2:15   ` Danny Milosavljevic
2017-12-20  9:27   ` Ludovic Courtès
2017-12-20 10:15     ` Ricardo Wurmus
2017-12-20 10:27     ` Arun Isaac

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://guix.gnu.org/

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

  git send-email \
    --in-reply-to=876095bq1r.fsf@lassieur.org \
    --to=clement@lassieur.org \
    --cc=arunisaac@systemreboot.net \
    --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 public inbox

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

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).