From mboxrd@z Thu Jan 1 00:00:00 1970 From: taylanbayirli@gmail.com (Taylan Ulrich =?utf-8?Q?Bay=C4=B1rl=C4=B1?= =?utf-8?Q?=2FKammer?=) Subject: Re: Some macros to make package definitions prettier Date: Wed, 25 Feb 2015 20:27:58 +0100 Message-ID: <87zj816bb5.fsf@taylan.uni.cx> References: <874mqa6iz4.fsf@taylan.uni.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42026) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQhcq-0007Xe-JH for guix-devel@gnu.org; Wed, 25 Feb 2015 14:28:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YQhcp-0006zf-JY for guix-devel@gnu.org; Wed, 25 Feb 2015 14:28:04 -0500 Received: from mail-we0-x233.google.com ([2a00:1450:400c:c03::233]:37518) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQhcp-0006yt-DJ for guix-devel@gnu.org; Wed, 25 Feb 2015 14:28:03 -0500 Received: by wesw55 with SMTP id w55so5728321wes.4 for ; Wed, 25 Feb 2015 11:28:02 -0800 (PST) In-Reply-To: (David Thompson's message of "Wed, 25 Feb 2015 12:06:31 -0500") 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: "Thompson, David" Cc: guix-devel "Thompson, David" writes: > On Wed, Feb 25, 2015 at 12:04 PM, Thompson, David > wrote: > >> I understand the temptation to name it 'modify-phases', but since this >> macro applies to any alist, I think 'modify-alist' or something with >> "alist" in the name would be more appropriate. > > Looking again, I see that the above isn't quite true. The > 'modify-phases' macro assumes that the keys of the alist are symbols > so that the user doesn't have to quote the phase names. > > - Dave Right. I was going to mention that, then forgot. If we ever need a generic `alist-modify', we can do that too, but for now this seems to be the only(?) use-case, and I think it's a big step towards allowing non-Schemers to work with package definitions without intimidation by foreign concepts and terminology. (As simple as alists are once one grasps them, it will be one more little annoyance for those who aren't motivated to learn Scheme.) Taylan