unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#34999: Record special field abstraction leakage
@ 2019-03-26  9:38 Ludovic Courtès
  2021-08-24 15:47 ` Leo Prikler
  0 siblings, 1 reply; 2+ messages in thread
From: Ludovic Courtès @ 2019-03-26  9:38 UTC (permalink / raw)
  To: bug-Guix

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-24 15:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-26  9:38 bug#34999: Record special field abstraction leakage Ludovic Courtès
2021-08-24 15:47 ` Leo Prikler

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