[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: |
Alex Vong |
Subject: |
Re: 'package-name-version' and 'strip-store-file-name' does the same thing with different ways |
Date: |
Sat, 20 Oct 2018 02:28:08 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
address@hidden (Ludovic Courtès) writes:
> 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. :-)
>
Your comment lead me to find out that 'append-map' is actually what I
want. I am curious why it is an indication of bad style.
>> 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!
>
OK!
> Thanks,
> Ludo’.
signature.asc
Description: PGP signature