Record special field abstraction leakage

OpenSubmitted by Ludovic Courtès.
Details
One participant
  • Ludovic Courtès
Owner
unassigned
Severity
important
L
L
Ludovic Courtès wrote on 26 Mar 2019 10:38
(address . bug-Guix@gnu.org)
87zhpiht6k.fsf@gnu.org
The changes I made in version-control.scm and gnucash.scm in commite6301fb76d0a8d931ece2e18d197e3c2cc53fc6c revealed an abstraction leakageI wasn’t aware of: there’s a pattern where users “see” that thunkedfields 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 caseis more elegantly replaced by:
(package-inputs this-record)
… which also has better semantics. It’s remains a bug, though.
Ludo’.
L
L
Ludovic Courtès wrote on 4 Apr 2019 13:26
control message for bug #34999
(address . control@debbugs.gnu.org)
87v9zurozb.fsf@gnu.org
severity 34999 important
?