From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) 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 Message-ID: <877eiegi2m.fsf@gnu.org> References: <875zy3j9k9.fsf@gmail.com> <874ldmgl8p.fsf@gnu.org> <87a7ndfszf.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42566) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDVC8-0006jN-9s for guix-devel@gnu.org; Fri, 19 Oct 2018 09:52:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gDVC7-0006tB-FR for guix-devel@gnu.org; Fri, 19 Oct 2018 09:52:04 -0400 In-Reply-To: <87a7ndfszf.fsf@gmail.com> (Alex Vong's message of "Wed, 17 Oct 2018 06:04:52 +0800") 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: Alex Vong Cc: guix-devel@gnu.org 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 not = a good sign in terms of programming style when we end up using it (though we=E2=80=99d need to s= tudy these specific use cases), so I=E2=80=99m reluctant to =E2=80=9Cstandardizi= ng=E2=80=9D 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=E2=80=99.