From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nikita Karetnikov Subject: Re: [PATCH] gnu-maintenance: Improve 'official-gnu-packages'; add the related procedures. Date: Wed, 27 Mar 2013 00:22:33 +0400 Message-ID: <8738vhud12.fsf@karetnikov.org> References: <87obfchq38.fsf@karetnikov.org> <87sj4ok6sc.fsf@gnu.org> <87sj48gxzp.fsf_-_@karetnikov.org> <87lia09khe.fsf@gnu.org> <874ngbcfbl.fsf_-_@karetnikov.org> <87vc8rq6ol.fsf@gnu.org> <877gl0kye8.fsf@karetnikov.org> <87620jk4oi.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60106) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKaMG-0004Me-JQ for bug-guix@gnu.org; Tue, 26 Mar 2013 16:20:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKaMD-0000GO-DW for bug-guix@gnu.org; Tue, 26 Mar 2013 16:20:36 -0400 In-Reply-To: <87620jk4oi.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Fri, 22 Mar 2013 13:19:25 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: bug-guix@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > =E2=80=9CEval is evil=E2=80=9D, as lispers love to say. Yeah, I've heard this one. > It should never be used, unless there=E2=80=99s a very good reason to do = so. I've heard this too. But people always fail to explain the "a very good reason" part. Any examples? AFAICT, it just means: "I haven't found a better solution." > In my unfinished binary substitute where a similar situation arises, > I=E2=80=99ve done this: [...] > And then, it is used like this: > (alist->record properties > (cut %make-cache url <...>) > '("StoreDir" "WantMassQuery")) So, keys and values are strings here, right? But I want to store setters as values. I can do it without 'eval', but it'll be necessary to write something like: (define (field-setter field) (list (list "package" (cons (gnu-package-descriptor (inherit (first state)) (name field)) (cdr state))) (list "mundane-name" (cons (gnu-package-descriptor (inherit (first state)) (mundane-name field)) (cdr state))) ...)) =09=09=09=20=20 It doesn't look right. Again, the problem is a need to store setters as values without repeating (cons (gnu-package-descriptor ...)) for every setter. Am I missing something? --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBAgAGBQJRUgOOAAoJEM+IQzI9IQ38o/IP/RxWuJRShDmUMsBK8lFnJ1Gd PvAkk/s/jk4HVBDyPWGWoUycRaMS1N26vfUVESh/Uom1H+cJvwaGrqVRqM62cjad tZEHwo3gNRvJOizhV+7ZPIiZkrmJBCgbhCSrhFvJEOvdTSM+DdkmKR6jLNk4iSKC caLbg4kTb1iTqzYkLMWHlSwtcTU3UFx3pLWVIsG5A2oGObUywow0mkoJ7ueI9odP lPO1PX3haBVlHY0CUczHsLQmddPYQAGzPKvofc5qAxV2/JoBBCgep0R+LuW7rA4Y qc8dJhy0rMZgdD0e3dNoLC+IzelSkq39WizaaOH1YoIVohw2qLIMDYgnZI+svG7i qth18oX2tuZx8UgXjBx7yN0TiHg3yYJyrM3gffnToEenVdXrdM1KZCNPBLdv/7kq hSqwtVr+PlkadB7qRTHfhxiXH8px22jEEmBTdrKJ2vmNKsyGl/9JJ3klEKRDtPhz PAhuI9XlazcgsbIheF9rt865rXMEihWbBM+ILvxdhoiTbbejdPlpkH0kKP4SGuIl VGcNWkJwzz9m11XMhWi8w9K19e5LRyvPUC8Is7DfQAL1caH2LOebXhve3N1vD9sP 6LA+4Vz8fhYfphhpEVlAHCyAKJ8+sgFmntzl5IIIRhKaUnuU1JutwB3qgBXANl1k Y5PRMMh+Mg9Te+AHowgM =PJoa -----END PGP SIGNATURE----- --=-=-=--