From mboxrd@z Thu Jan 1 00:00:00 1970 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 Message-ID: <87d0s5pz9j.fsf@gmail.com> References: <875zy3j9k9.fsf@gmail.com> <874ldmgl8p.fsf@gnu.org> <87a7ndfszf.fsf@gmail.com> <877eiegi2m.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47896) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDZVj-0003Uz-Ts for guix-devel@gnu.org; Fri, 19 Oct 2018 14:28:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gDZVe-0005JS-I4 for guix-devel@gnu.org; Fri, 19 Oct 2018 14:28:35 -0400 In-Reply-To: <877eiegi2m.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Fri, 19 Oct 2018 15:52:01 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Hello Alex, > > Alex Vong 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 =E2=80=98flatten=E2=80=99 specifically, I feel like it=E2=80=99s no= t a good sign in terms > of programming style when we end up using it (though we=E2=80=99d need to= study > these specific use cases), so I=E2=80=99m reluctant to =E2=80=9Cstandardi= zing=E2=80=9D 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=E2=80=99. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQSof2ZdXkE0FM5aU4XzrkvbI+zaGwUCW8oiOAAKCRDzrkvbI+za Gx+aAQD8pAGkJBn8nRAURqZnl0+6a4nst1wygtk+h8SUm2vNDQD9G6pNUwXW+6sf B0hJ+6y4uErVibpTN0LcgQ/R+6Rnlw4= =noi6 -----END PGP SIGNATURE----- --=-=-=--