From: "Ludovic Courtès" <ludo@gnu.org>
To: bug-Guix@gnu.org
Subject: bug#34999: Record special field abstraction leakage
Date: Tue, 26 Mar 2019 10:38:11 +0100 [thread overview]
Message-ID: <87zhpiht6k.fsf@gnu.org> (raw)
The changes I made in version-control.scm and gnucash.scm in commit
e6301fb76d0a8d931ece2e18d197e3c2cc53fc6c revealed an abstraction leakage
I wasn’t aware of: there’s a pattern where users “see” that thunked
fields are thunked:
(package
;; …
(inputs …)
(arguments `(foo bar ,(inputs) …))) ;<- here ‘inputs’ is seen as a thunk
Fortunately I could only find two occurrences of this and this use case
is more elegantly replaced by:
(package-inputs this-record)
… which also has better semantics. It’s remains a bug, though.
Ludo’.
next reply other threads:[~2019-03-26 9:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-26 9:38 Ludovic Courtès [this message]
2021-08-24 15:47 ` bug#34999: Record special field abstraction leakage Leo Prikler
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=87zhpiht6k.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=bug-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.
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.