|
From: | Ludovic Courtès |
Subject: | Re: [PATCH] guix package: Show which generation is the current one. |
Date: | Tue, 24 Sep 2013 16:16:51 +0200 |
User-agent: | Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux) |
Nikita Karetnikov <address@hidden> skribis: >> Could we instead of a global (current-generation-number profile) >> procedure? We’d store the number in a local variable here, to avoid >> repeated ‘readlink’ calls. > > I don’t see how the former implies the latter. Could you expand on > this? I’m suggesting to have a procedure like this: (define (current-generation-number profile) ;; Return the current generation number of PROFILE. ...) And then you could do: (let ((generation (current-generation-number profile))) ...) Does that make sense? Ludo’.
[Prev in Thread] | Current Thread | [Next in Thread] |