From: jgart <jgart@dismail.de>
To: Guix Help <help-guix@gnu.org>
Subject: Why do we force the lazy python?
Date: Sat, 9 Jul 2022 20:51:06 -0500 [thread overview]
Message-ID: <20220709205106.GB24308@gac> (raw)
Hi Guixers,
Why do we check if python is a promise and then "force" it?
I'm just trying to understand the thinking for doing that since I didn't
write this code.
```
(let ((python (if (promise? python)
(force python)
python)))
...
```
I understand that force makes a promise evaluate (laziness). That's
about as much as I know.
guix/build-system/python.scm:119
all best,
jgart
next reply other threads:[~2022-07-10 1:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-10 1:51 jgart [this message]
2022-07-10 8:04 ` Why do we force the lazy python? Ricardo Wurmus
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=20220709205106.GB24308@gac \
--to=jgart@dismail.de \
--cc=help-guix@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).