guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 'package-name-version' and 'strip-store-file-name' does the same thi


From: Ludovic Courtès
Subject: Re: 'package-name-version' and 'strip-store-file-name' does the same thing with different ways
Date: Fri, 19 Oct 2018 15:52:01 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Hello Alex,

Alex Vong <address@hidden> skribis:

> Btw, I also noticed that the procedure 'flatten' are defined in
> (gnu services telephony), (gnu services web) and (guix import utils).
> [I was about to define my own version of it...]
> I like the version using 'fold-right' together with 'match-lambda*' the
> most. Should we move it (guix build utils) and remove the rest?

About ‘flatten’ specifically, I feel like it’s not a good sign in terms
of programming style when we end up using it (though we’d need to study
these specific use cases), so I’m reluctant to “standardizing” it.  :-)

> Similarly, 'file-sans-extension' are defined in both (guix utils) and
> (guix build guile-build-system). They are both the same. Should we move
> them to (guix build utils) as well?

Yes, sounds like a good idea!

Thanks,
Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]